Forums

[Plugin: WP Super Cache] WP-Super Cache comment in headers (3 posts)

  1. tim8
    Member
    Posted 5 months ago #

    I am getting the following html comment being inserted in the headers before content is sent from the server. (So as part of the HTTP headers)
    <!-- Page not cached by WP Super Cache. No closing HTML tag. Check your theme. -->

    This of course makes the headers look like they are part of the content, and I end up with a whole HTTP1.1 set of headers above the content. It appears to only happen on login (so wp-login) and initial view of the dashboard.

    Tim

  2. tim8
    Member
    Posted 5 months ago #

    Btw, I commented out the relevant line in the source code (that adds the comment to the buffered output) and the problem is resolved. But why is it trying to add the line in the first place!?! It did this with and without compression enabled.

  3. donncha
    Member
    Posted 5 months ago #

    That text appears at the end of your page, not in the headers. Check your plugins. One of them could be using the output buffer incorrectly. (ob_start is a good place to start looking)

Reply

You must log in to post.

About this Topic