I change css on my website, but the changes do not reach the browser.
Do I need to disable caching in Cloudflare? how to do it?
CSS files, as most static files, are cached by default by Cloudflare. So if you change the content AND do not change the name of the file, you’d need to purge that file from Cloudflare’s cache. (As well as from your local cache, if that’s the case). You can purge the individual file, or all cached files, by visiting Dashboard > Caching > Configuration:
https://dash.cloudflare.com/?to=/:account/:zone/caching/configuration
can I completely and permanently disable caching for only one site?
You can create a Page Rule matching the URL
example.com/*
with a setting:
Cache Level: Bypass
That would disable caching for any URL starting with example.com
.
1 Like
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.