-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Cloudflare Workers (Beta Assets). Broken Caching _headers #13164
Copy link
Copy link
Closed as not planned
Labels
- P2: has workaroundAn edge case that only affects very specific usage, but has a trivial workaround (priority)An edge case that only affects very specific usage, but has a trivial workaround (priority)pkg: cloudflareRelated to the Cloudflare adapterRelated to the Cloudflare adapterwontfixThe Astro maintainers won't be fixing this issue, however community PRs are still welcome.The Astro maintainers won't be fixing this issue, however community PRs are still welcome.
Metadata
Metadata
Assignees
Labels
- P2: has workaroundAn edge case that only affects very specific usage, but has a trivial workaround (priority)An edge case that only affects very specific usage, but has a trivial workaround (priority)pkg: cloudflareRelated to the Cloudflare adapterRelated to the Cloudflare adapterwontfixThe Astro maintainers won't be fixing this issue, however community PRs are still welcome.The Astro maintainers won't be fixing this issue, however community PRs are still welcome.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Using the experimental deployment of Cloudflare Workers for Astro, caching does not seem to work for paths specified in
_headers.Response headers for static assets:
cache-control: public, max-age=0, must-revalidate.https://my-astro-app.thepredaytor.workers.dev/
public/_routes.json:{ "version": 1, "include": [ "/*" ], "exclude": [ "/_astro/*", "/.assetsignore", "/favicon.svg" ] }public/_headers:/_astro/* Cache-Control: public, max-age=31557600, immutable /favicon.ico Cache-Control: public, max-age=3600, immutable /favicon.svg Cache-Control: public, max-age=3600, immutablewrangler.toml:What's the expected result?
The response headers must represent those defined in the
_headersfile.Link to Minimal Reproducible Example
https://stackblitz.com/github/predaytor/astro-cloudflare
Participation