I'm using a minimal Ubuntu server 16.04 with Nginx 1.10.3 (to which I moved from Apache 2 days ago). On this environment, I run a minimal Wordpress site (5 plugins, no customization).
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d;
}
location ~* \.(pdf)$ {
expires 30d;
}
I pasted that code inside the server block in the default.conf
file of Nginx (to use it with other sites if I'd need), and restarted:
systemctl restart nginx.service
Yet when running GPI test I still get “Leverage browser caching” for many jpg files, even though “jpg” is already included in the directive.
All documentation I found, so far, deals exactly with what I already tried. Any ideas? Maybe most doc is outdated? Maybe that’s a bug in the current release of Nginx?
default.conf
?curl -i contfix.co.il
I get the enitre HTML and CSS of the webpage, That's basically all I get - tons of HTML and CSS.