Hello Everyone, I’m new to Cloudfare, and CDNs in General.
I am trying to under stand the process of updating some Static Content like .js or .css files.
I understand that if I make the changes to these files they will not be reflected right away unless I enable Developer mode. After updating and testing these files , If I do not turn off Developer mode it will auto disable after 3 hours.
How then do I know when the those static files will be updated in the cache? Is there a setting I can enable or check?
There’s nothing you can check that will predict cache expiration. If you make changes, you’ll need to Purge Cache, either Everything, or specific URLs.
Dev Mode will bypass that cache, but after 3 hours, the cache comes back as it was with nothing purged.
Dev Mode bypasses the cache. Yes, at some point, the cache is updated, but Dev Mode doesn’t affect that. Dev Mode lets you see the changes live. If all those changes look good, Purge the cache for those changes to take effect.
Those are static files, and by definition, rarely, if ever, change. The Cloudflare Cache defaults to a couple of hours unless you say otherwise.
No real harm. It’s generally what I do. It just slows down some files for the first visitor at that edge node as Cloudflare refreshes the cache in that region.