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!
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 🙂