Cloudflare Pages ignores framework preset for Astro and build cache

For Workers & Pages, what is the name of the domain?

cdfa2efe.website-4wh.pages.dev

What is the issue or error you’re encountering

Cloudflare Caching doesnt work for astro static builds, it seems Cloudflare doesnt detect Astro as framework for the build(or i cant even set it, keep resetting back to None) so subsequent builds takes same time even astro caches entries in node_modules/.astro

What steps have you taken to resolve the issue?

I checked forums and seems other people facing issues with caching too

What are the steps to reproduce the issue?

Build an astro site with image optimizations multiple times, you will see that cache is not used

Looks like it’s uploading fine. It didn’t download on the next build because the lock file had changed.

If lock file doesn’t change, it would download without issue.

1 Like

Yes i figured that out, thanks now it works

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.