• Resolved klfso

    (@klfso)


    hi, im testing my site’s speed using gtmetrix and it keeps recommending to add expire headers. I thought that would be automatic when I install this plugin? how do I do that? appreciate your help, thanks!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Autoptimize tries to ensure expire headers are added for the autoptimized CSS/ JS, but that doesn’t always work. In that case you can try unticking the “serve as static files” option, which will see the CSS/ JS served as .php-files allowing the PHP-code to set the correct cachebility-headers. The alternative is (asking your hoster to) configure(ing) your webserver, as described at e.g. https://varvy.com/pagespeed/cache-control.html

    hope this helps,
    frank

    Thread Starter klfso

    (@klfso)

    Hi Frank,

    I’m not a techie but I did try that and my site’s speed improved but I can still see on Gtmetrix that I need to add expires headers. Pingdom also says that.

    Okay, will try to ask my web host to help, thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I did try that and my site’s speed improved but I can still see on Gtmetrix that I need to add expires headers.

    well, unticking “serve static” adds expires headers to the autoptimized files, but all other files would still lack the right headers, so indeed doing this (or having it done by your web host) on the webserver level is the better approach ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add expires headers’ is closed to new replies.