• Resolved red.green.blue

    (@redgreenblue)


    Can I request of the team that they consider adding a check box or dropdown to the Post/Page editing screen that would allow us to specify that the post/page is not cached by Cloudflare.

    (Although Cloudflare has Page Rules that would be one way to deal with this, Page Rules become difficult to manage in circumstances where the pages you don’t want cached have no obvious URL pattern.)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Cloudflare has multiple caching levels. Applying default settings will set your Cache Settings to “Standard” which does not cache HTML so you should be fine adding/editing new Posts and Pages.

    If you set “Cache Everything” Page Rule then Cloudflare will cache HTML too. In that case it’d be best to Purge Cache from the plugin when adding/editing new Posts and Pages.

    Thread Starter red.green.blue

    (@redgreenblue)

    Thanks for your speedy reply.

    So, if I understand this correctly: even if you have ‘Cache Everything’ set – no cache headers for a particular post will prevent that particular post being cached.

    For someone who wants the speed of having most of their html cached but some posts (which have urls that are not easy to identify by a url pattern) to be dynamically generated by WordPress, the easiest to maintain method would be to ‘cache everything’ but have individual posts/pages transmit no cache headers.

    For that situation, a no cache checkbox would be very helpful.

    @redgreenblue,

    If you want to cache HTML my personal suggestion would be to set Cache-Everything Page Rule and to avoid wp-admin to be cached have a Page Rule [myodomain].com/wp-admin/* to bypass cache (applying default settings does this).

    Since you set the cache everything I’d recommend to purge cache when you publish a new post or comment. If you know the exact URLs you can always set a page rule to bypass cache.

    For more information please read the following.

    https://support.cloudflare.com/hc/en-us/articles/202775670-How-Do-I-Tell-CloudFlare-What-to-Cache-

    This particular setup was requested before. If we have enough users demanding a solution for Cache-Everything page rule setup for their blog, we would try to give our users a better experience.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feature Request: Cache Control Headers (Per Post)’ is closed to new replies.