Hi;
It looks like WordPress’s cache everything Page Rule is what’s supplying the dated content. Unless WordPress sends the correct cache control headers, the cached content will be sent.
Two solutions:
Use Disqus for comments, this provides multiple advantages, but one of them being the cache headers will be set correctly meaning new comments will show through. This is the easiest option.
The other is to get WordPress to set caching headers correctly when a new comment is added. There is a guide on this here: http://speedrak.com/blog/add-expires-header-optimize-cache-control/
Thanks for answering,wanna try the second solution.
But I’m using Nginx,so I added the code below to my .conf:
location ~* \.(?:html)$ {
expires 0d;
add_header Pragma public;
add_header Cache-Control "public";
try_files $uri =404;
}
But still the browser needs refreshing manually to see the new one when a comment is submited by a previously approved author.
Browser cache TTL settings can be changed in Cloudflare Page Rules. Minimal browser TTL depends on Cloudlfare Plan
https://support.cloudflare.com/hc/en-us/articles/200168366-What-does-browser-cache-expire-TTL-mean-
Hey,kursorA,maybe this means I should pay to make Minimal browser cache zero?