• Resolved krislai

    (@krislai)


    Hi there, I would like to ask how to solves the site health issue in my WordPress site with “W3 Total Cache” plugin.

    Screenshoot of the error message:
    Site health issues

    [Wordpress Site health issues]
    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 1,367 milliseconds. It should be less than the recommended 600 milliseconds threshold.

    ! – No client caching response headers were detected.

    • This topic was modified 3 years, 7 months ago by krislai.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @krislai

    Thank you for reaching out and I am happy to assist you with this.
    I’ve checked your website and I can confirm that the home page does not have the expiration set or cache control, or Etag
    cache-control: no-cache, must-revalidate, max-age=0
    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, 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 krislai

    (@krislai)

    Hi @vmarko,

    Thank you for your reply! I turned on the settings that you’re mention but still getting the errors and for the security header, I did paste the following code into my htaccess file.

    `Header always set Strict-Transport-Security: “max-age=31536000” env=HTTPS
    Header always set Content-Security-Policy “upgrade-insecure-requests”
    Header always set X-XSS-Protection “0”
    Header always set X-Content-Type-Options “nosniff”
    Header always set Referrer-Policy “strict-origin-when-cross-origin”
    Header always set X-Frame-Options: “SAMEORIGIN”
    Header always set Permissions-Policy: “”

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @krislai

    Thank you for your feedback.
    These are also available in the W3TC Performance>Browser Cache>Advanced, so you shouldn’t have added those rules manually, you can use the W3TC options instead.
    If the settings are correct and reflected in the .htaccess file, and as I can see those are not added when checking the website, It means that yo either has some conflicting rules in your .htaccess or some rules in the upper level of the website structure that is overruling the .htacces in the root folder of the website.
    Please check this with your hosting provider.

    Thanks!

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

The topic ‘Page cache Issues’ is closed to new replies.