We use cloudflare for our web-based apps - we use page rules to cache everything:
Cache Level: Cache Everything, Edge Cache TTL: a month
Sometimes - we need to purge a single file to make updates.
So - for say we purge: “inc.js” - mostly, this works. But some users browser do not collect the new update from cloudflare. They keep the old version. The browser is either caching the JavaScript file itself, or our site is caching the file somehow in configuration.
Can you give any advice on how to FORCE users browsers to check cloudflare and pull the latest cache versions?
If the file being cached by the browser, or by DNS / ISP - would the headers show something other then cloudflare as the server, or not HIT for status?
If something was identifiable in the header that the user wasn’t using a version from cloudflare - that would be very helpful, as we could then find a way to get the users browser to update the file at their end (appending a parameter to the file, or loading it via jquery with “no cache”)