• Hi,

    My posts contain comments and visitors can give the posts a rating. This functionality only works when I do not page-cache the post. I accomplished this bu including this in to the single.php template file:
    define('DONOTCACHEPAGE', true);

    Now the comments and ratings are working again. However it seems like that W3TC is sending the wrong headers:
    Cache-Control:max-age=43200

    It even seems like existing visitors keep these posts endlessly in their browser cache. I get 404’s from posts I’ve changed ages ago..

    The cache headers should be like in my browser cache html/xml settings, right?
    Cache-Control:public, must-revalidate, proxy-revalidate

    I want the posts that are not page-cached to be revalidated each time a browser visits the post. Otherwise the post stays in the browser cache, right? I just want the browser to check if there is a new version on each visit.

    Is it a bug? Or is it something I can fix via my template file? Or do I just don’t understand how caching should work 😉

    Thanks!

    Koen

    https://ww.wp.xz.cn/plugins/w3-total-cache/

The topic ‘DONOTCACHEPAGE not returning the correct header?’ is closed to new replies.