I'm getting started with CloudFlare and I’m using it to build a new project.
I’m facing an issue when I make changes: I cannot see my changes in the browser, so I assume the problem here is the cache setting of CloudFlare.
I have read this link, about the CloudFlare cache, so I put the following meta-tag in my html:
<meta http-equiv="Cache-control" content="private">
But the problem still remain.
Should I put other meta-tags, or prevent -somehow- caching from the server-side? (I'm using PHP)
To deactivate the Cloudflare full-page caching, simply go to the Cloudflare Tab, click Deauthenticate, and after that disable the optimization. This will remove the SiteGround Optimizer Worker that was added to your account. By doing this you will revert to the default settings of your Cloudflare account.
When using Origin Cache-Control and setting max-age=0 , Cloudflare prefers to cache and revalidate. With Origin Cache-Control off and max-age=0 , Cloudflare settings bypass cache. Setting no-cache also bypasses cache.
Cloudflare does not cache HTML resources automatically. This prevents us from unintentionally caching pages that often contain dynamic elements. For example, the content on certain HTML pages may change based on specific visitor characteristics, such as authentication, personalization, and shopping cart information.
cloudflare has a Development mode
option that:
You will also be able to turn off the Development mode
at any time during the 3 hours.
Hope this helps with people looking for the same answer to this question or if you still have this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With