I have moved a site from GoDaddy and set up to self host at DigitalOcean. I’ve moved Authoritative DNS to Cloudflare, set up a Tunnel and now serving site. Now refactoring site html,css,js. Problem: The original images were 4,5,8, and 12mb in size. The site was loading those oversize files and thus being cached by Cloudflare. I resized the images, added a Cache Rule to bypass all requests and Purged All cache. Uncached images then load instead of the reduced size. Problem is that without removing the Cache Rule, the cached oversize large image files load again. They cannot be from the source server as they no longer exist. So why, if I have not removed the Cache Rule are the old oversize files loading? If I Purge Cache and reload the page, the smaller files load. Give it some time and then the large oversize files load. I don’t understand. Any help appreciated! Thank you
What steps have you taken to resolve the issue?
Added Cache Rule to bypass all requests
Cache Configuration - Purge All
What are the steps to reproduce the issue?
Wait some time and the cached files are served even if Cache Rule still enabled
Correction… When I Purge Cache the smaller files are served from my server. Wait a bit and then the original oversize large image files get served. They have to be being served from Cache as the original files have been reduced.
The file is not cached by Cloudflare (the cf-cache-status is DYNAMIC) so your rule is overriding the Cloudflare default and making the file ineligible to cache…
But that’s my point… as you can see from the directory listing, those large files don’t exist. Nginx does not have any caching mechanism in place, so the only place, I’m aware, that could be caching is CF. And as I indicated, if I go the Cache Configuration and Purge All, then the smaller files are served. That tells me it is CF that’s caching