How does Cache-Control actually work ?
-
When we activate this plug-in, it changes some settings in Cloudflare Dashboard via the API. In these settings, it sets a page rule to cache everything, and browser cache TTL to respect existing headers. (Correct me if I missed something)
Now, the plugin sets s-maxage to 1 year, but I found that it is actually not working. I had opened some pages on my website yesterday, but on today morning, it showed cache status miss on the same pages. If pages are being cached for a year, it should not show miss status. So how does it actually work ? Does the plugin set any other things ?
I read that in order to use s-maxage, we need origin cache control turned on. It is not turned on by the plugin. Although Cloudflare says that they turn it on by default for all except Enterprise accounts, I cannot understand why caches expire after a day. I have not performed any changes on my site or purged cache.
- The topic ‘How does Cache-Control actually work ?’ is closed to new replies.