@sveltejs/adapter-cloudflare-workers
Advanced tools
Comparing version 1.0.0-next.41 to 1.0.0-next.42
@@ -26,7 +26,11 @@ import { Server } from 'SERVER'; | ||
const cache_control = url.pathname.startsWith(prefix + 'immutable/') | ||
? 'public, immutable, max-age=31536000' | ||
: 'no-cache'; | ||
return new Response(res.body, { | ||
headers: { | ||
// include original cache headers, minus cache-control which | ||
// include original headers, minus cache-control which | ||
// is overridden, and etag which is no longer useful | ||
'cache-control': 'public, immutable, max-age=31536000', | ||
'cache-control': cache_control, | ||
'content-type': res.headers.get('content-type'), | ||
@@ -33,0 +37,0 @@ 'x-robots-tag': 'noindex' |
{ | ||
"name": "@sveltejs/adapter-cloudflare-workers", | ||
"version": "1.0.0-next.41", | ||
"version": "1.0.0-next.42", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11598
202