I run an application on a Windows server that produces images every hour. I’ve never used Cloudflare before but it’s turned out useful as a dns server, and a lot easier to configure than Windows. I’m running into a caching issue where the images on the server are being updated at 10 past the hour, but in the browser they are not updating.
What options do I have so these images are upto date in the browser or near as can be?
I apologise for the dumb questions, I’m used to linux and everything being done in cPanel!!
Hello, don’t worry about the questions - we’re here to help! Have you tried to Purge the cache already?You can manually purge the cache for the specific images or the entire domain in the Cloudflare dashboard. For reference: Purge everything · Cloudflare Cache (CDN) docs
If the issue persists, you can also try to use cache expiration, to set a cache expiration time for the images in Cloudflare, so that the cache is refreshed at a set interval (e.g., every hour). This way, the images will be updated in the browser at the set interval. For reference: Edge and Browser Cache TTL · Cloudflare Cache (CDN) docs
But If the images are updated frequently, you can disable caching for the images altogether, because this will ensure that the latest version of the images is always served to visitors. You can do this creating a custom cache rule. For reference: Cache Rules · Cloudflare Cache (CDN) docs