Browser cache and CloudFlare: Front page not updating
I ‘m currently using W3TC together with CloudFlare and everything works fine. The only thing that I’m not able to deal with is front page behavior when adding a new post.
My front page is populated with latest posts in reverse chronological order, and with my current settings I’m not able to see changes when a new post is added. The only walk around is to refresh the browser (not a hard refresh), but I would like to get it working without the need of refreshing the browser.
I know that I must have a misconfiguration, but I can’t figure it out where the problem resides.
My current configuration is the following:
·Cloudflare is configured to honor headers and I’m happy about how the rules that I added to Cloudflare are working. This seems to be working ok.
·Cloudflare W3TC extension is configured with the “Flush CloudFlare on Post Modifications” option activated and maximum Edge Cache available by Cloudflare.
·Browser Cache in W3TC is configured for CSS, JS and media with a TTL of 31536000 and a control cache “public, max-age=expires-seconds”.
·For HTML and XML TTL is 31536000 and control cache “max-age=expires_seconds,public, must-revalidate, proxy-revalidate”.
I understand that I should be using a lower TTL for HTML, buy this way I’m getting better caching ratio in CloudFlare. Seems to be working fine when editing a post, because W3TC is flushing CloudFlare cache correctly, but it is not working when adding a new post to front page.
Thank you in advance.
- The topic ‘Browser cache and CloudFlare: Front page not updating’ is closed to new replies.