Quantcast
Channel: Plesk 12.x for Linux
Viewing all articles
Browse latest Browse all 5117

NGiNX - browser caching for static resources

$
0
0
Hi,

On Plesk 12.0 I used the following rules under additional nginx directives to enable browser caching for static resources:

location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff|svg)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control “public”;
try_files $uri @fallback;
}

but since upgrading to Plesk 12.5 it is no longer working. No matter what I've tried so far has worked to get browser caching for static resources working again.

Does anyone have any ideas?

Viewing all articles
Browse latest Browse all 5117

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>