Issues with caching

Hello. I use Pages for a bit now and I've observed some weird behavior with caching: - When I change a file on my site, while it changes on the .pages.dev subdomain instantly, it doesn't on the custom domain. This happens when I have the Cloudflare proxying enabled for the cname entry and it takes approximately 30 minutes to change. When I don't use Cloudflare proxying, it works fine. - When I delete a file, even on the pages.dev domain, the file remains accessible for a few days (haven't checked how much). I have no idea if this is intended. Cache purging on my domain doesn't help for both cases. I was thinking of keeping Cloudflare proxying on to hide the actual dns queries (is it even worth it?) Thanks
2 Replies
Erisa
Erisa15mo ago
the first one should stop happening if you add a cache rule to bypass cache, you shouldn't lose performance since pages has its own internal cache. this is because the zone has its own cache in addition to pages, though it should only apply to certain file types unless you configure it otherwise the second thing is intentional behaviour, it ensures that users on old pages can still load assets without it suddenly breaking on each new deployment. files are cached in pages for up to 7 days after being deleted
Nikolas
NikolasOP15mo ago
Oh okay I understand. Thanks!
Want results from more Discord servers?
Add your server