• Resolved 0alex0

    (@0alex0)


    Hi,

    I am using W3 Total Cache plugin in my website, but I am getting “serve static assets with an efficient cache policy” issue on Page Speed Insight.

    W3 Total Cache settings are fine, .htaccess is fine and no other .htaccess files are rewritting it. Even so, Page Speed Insight is reporting “none” on “Cache TTL”.

    I managed to solve the issue modifying Apache & nginx settings in Plesk. In Common Apache Settings > Expires I switched from “default” to a custom value of 365 days. Doing that, the “serve static assets with an efficient cache policy” issue dissappears.

    Is this the right way to solve that issue? I guess that caching is being carried out by the server, so, can I disable W3 Total Cache caching?

    Thanks in advance,

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

    (@vmarko)

    Hello @0alex0

    Thank you for reaching out and I am happy to assist you with this.
    When using Apache+Nginx, you need to configure Nginx to respect the origin headers and NGINX Bypass Apache for static files.

    What you have done with a custom value of 365 days is basically configured Nginx to a proper expiry, so it can be done this way, or you can simply allow the origin rules.

    I hope this helps!

    Thanks!

    Thread Starter 0alex0

    (@0alex0)

    Hi @vmarko,

    Thanks for your prompt response. How can I configure Nginx to respect the origin headers and NGINX Bypass Apache for static files? Is there any guide to do it?

    Cheers,

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @0alex0

    This depends on the hosting provider. It should look something like the screenshot below.

    I would suggest you reaching out to your hosting provider as they have more information about this:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Serve Assets With an Efficient Cache Policy’ is closed to new replies.