thinkingcap
Basic Pleskian
Im following the cache expiration article here.
How to enable leverage browser caching for nginx?
Site is FPM served by Apache with Nginx Proxy mode.
I have the following in "Additional nginx directives"
I see the various X-* headers added to the response but not the cache settings on images.
How to enable leverage browser caching for nginx?
Site is FPM served by Apache with Nginx Proxy mode.
I have the following in "Additional nginx directives"
Code:
location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg)$ {
expires 30d;
add_header Pragma "public";
add_header Cache-Control "public";
}
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Xss-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
I see the various X-* headers added to the response but not the cache settings on images.