• Resolved Insect Trojan

    (@insecttrojan)


    hello so google says me Serve static assets with an efficient cache policy 18 resources found but i have on browser cache Set expires header on
    CSS & JS 31536000
    HTML & XML 3600
    MEDIA & OTHER FILES 31536000

    what i am doing wrong it must be more than 60 days ? thanks a lot

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

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

    (@vmarko)

    Hello @insecttrojan

    Thank you for reaching out and I am happy to assist you with this.
    I’ve tested the website and checked the files that Google is complaining about. As I can see, the cache-control header and expires header are showing different than what was set in the W3TC settings.
    For example:
    https://www.insect.gr/wp-content/cache/autoptimize/js/autoptimize_d3eac279888c6d1c382d9da4ca336dd2.js
    expires: Wed, 27 Apr 2022 10:42:08 GMT
    cache-control: max-age=2592000
    this means that both are set to 30 days. I can also see x-nginx-cache-status: HIT header which indicates that you may be using Proxy cache. This also means that the proxy is setting the headers for those files and does not respect the origin. I can see that you are using Plesk, so you need to disable the handling of the static files by Proxy and let the origin (rules set by W3TC) handle those files
    I would recommend reaching out to your hosting provider for assistance with this.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Serve static assets with an efficient cache policy’ is closed to new replies.