MichaelG
New Pleskian
Hey I checked my webpage on tools.pingdom.com and it says that the browser cache expiration is not set.
I've looked at different articles but can't seem to fix it. This is what I did.
I've added in plesk additional nginx directives:
# and Cache Control
location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
expires 14d;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
try_files $uri @fallback;
}
nginx settings:
Proxy mode = checked
Smart static files processing = checked
Serve static files directly by nginx = unchecked
additional information:
Running CentOS 7
Plesk Onyx v17.0.17_build1700161028.14
PHP 7.0.17 as FPM application served by nginx
mysql 5.5
- site is running Wordpress using plesk toolkit
I've looked at different articles but can't seem to fix it. This is what I did.
I've added in plesk additional nginx directives:
# and Cache Control
location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
expires 14d;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
try_files $uri @fallback;
}
nginx settings:
Proxy mode = checked
Smart static files processing = checked
Serve static files directly by nginx = unchecked
additional information:
Running CentOS 7
Plesk Onyx v17.0.17_build1700161028.14
PHP 7.0.17 as FPM application served by nginx
mysql 5.5
- site is running Wordpress using plesk toolkit