• Resolved SteveHale

    (@stevehale)


    Hi Marko

    I am getting this error on the site health status:

    Page cache is detected but the server response time is still slow

    Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.
    
    Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:
    cache-control, expires, age, last-modified, etag, x-cache-enabled, x-cache-disabled, x-srcache-store-status, x-srcache-fetch-status.
    
        Median server response time was 2,459 milliseconds. It should be less than the recommended 600 milliseconds threshold.
        There were 4 client caching response headers detected: cache-control, expires, last-modified, etag.
        A page cache plugin was detected.

    Do you ha`ve any ideas how to sort this?

    Regards

    Steve B

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevehale

    Thank you for reaching out and I am happy to assist you with this.

    I’ve checked your website and I can see that the home page has the expiration set, cache control, and Etag

    Cache-Control: max-age=2321, public
    Cache-Control: max-age=259200
    Connection: Keep-Alive
    Content-Encoding: gzip
    Date: Mon, 27 Feb 2023 09:52:29 GMT
    ETag: “e19ac65f8b11f40f691d2d59027b3489”
    Expires: Thu, 02 Mar 2023 09:52:29 GMT
    Keep-Alive: timeout=5, max=93
    Last-Modified: Mon, 27 Feb 2023 09:31:12 GMT


    This is handled by the Browser Cache in W3 Total Cache. So you should make sure that the Browser Cache is enabled in the General settings and make sure that the Etag, Cache-control and expires header is enabled in the Performance>Browser Cache, under the HTML&XML section.
    Also, I can see that you have some security headers, and double headers so please make sure that you are not using any other plugin to set the mentioned rules and make sure you do not have any custom rules in your .htaccess file.

    Thanks!

    Thread Starter SteveHale

    (@stevehale)

    All the options you mention are already checked.

    Also I have no idea what you mean by this statement:

    “Also, I can see that you have some security headers, and double headers ”

    Please can you advise.

    Regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevehale

    Thank you for your feedback. For example:

    Cache-Control: max-age=2321, public
    Cache-Control: max-age=259200

    and

    1. Referrer-Policy: strict-origin-when-cross-origin
    2. Referrer-Policy: no-referrer-when-downgrade

    This means that besides the W3 Total Cache rules in the .htaccess for the required headers, you either have some other plugin installed that is modifying the headers or you have some custom rules added to your .htaccess files so please double-check this.

    I am not seeing any of those for static files so only HTML is affected by these double headers and Strict-Transport-Security X-Content-Type-Options: nosniff X-Frame-Options: sameorigin – security headers.

    Check your .htaccess file and make sure that only W3 Total Cache is adding the rules for Browser Cache.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Page Caching Error’ is closed to new replies.