I'm not using any cache plugins on my wordpress and I'm not using any caching system on my server but for some reasons , " Google Chrome " and " Firefox " keep caching my website and whenever I make a change , I need to use ctrl+f5 to see new posts . Is there a way to clear cache after there is a new post or something is changed ?
1 Answer
There are kind of two levels to browsing caching:
- Browser is provided with explicit information when page expires via response headers or 304 Not Modified response.
- Browser kind of assumes that page was loaded very recently and is still good for a while.
Respectively there are two possible things going wrong:
- Your server is replying with invalid caching information. That might happen on different stages of the process (PHP, web server, reverse proxy). You can use browser's own tools or something like https://redbot.org/ to check for it.
- Browser is just of mind to cache aggressively. This seems to rarely be an issue outside of short time (minutes). Unfortunately it won't be trivial to prevent, since WP has poor architecture for working with caching headers.
Overall you need to troubleshoot current headers to determine how it goes wrong.
-
Can Gtmetrix leverage browser caching cause this ? I only use them for images but wordpress posts gets cached too Commented Oct 31, 2015 at 17:33
-