• Resolved Emmanuel Chekumbe

    (@smartkenyan)


    I am getting this in Site Health

    Page caching is not detected

    The AMP plugin performs at its best when page caching is enabled. This is because the additional optimizations performed require additional server processing time, and page caching ensures that responses are served quickly.

    Page caching is detected by making three requests to the homepage and looking for Cache-Control: max-age=…, Expires, or Age HTTP response headers.

    I have Wp-Rocket set and I have set Cache Control header in Nginx.

    I contacted Wp-Rocket and they said I contact AMP Developers.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @smartkenyan

    Thank you for the support topic, As mentioned in the description the AMP plugin detects the cache mechanism by sending 3 requests to the homepage and checking if the HTTP response header contains Cache-Control: max-age=…, Expires, or Age

    As you know each cache plugin is built differently, in the case of WP Rocket it might not have cache-control in HTTP response which leads to false-positive notice.

    for now, can simply ignore that notice if you have a caching plugin installed, I will open a GitHub issue to improve page caching detection by AMP plugin hopefully, it will improve in future versions.

    Hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    Hello @smartkenyan

    Additionally, can you confirm with WP Rocket that your sites cache expiration is greater than the date it was created (screenshot) please check if your cache expiration is set to at least 1 day (24 hours)

    Plugin Support Milind More

    (@milindmore22)

    @smartkenyan

    There’s also a GitHub issue now to investigate this further: https://github.com/ampproject/amp-wp/issues/6830

    I will mark this topic as resolved, Please subscribe to GitHub issue to get further updates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page caching is not detected’ is closed to new replies.