changed cache policy for images and css/js/html

This commit is contained in:
ahmza
2022-01-15 12:53:36 +00:00
parent a1df0a3b7c
commit a2f2461025
+2 -2
View File
@@ -49,7 +49,7 @@ http {
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
expires 1y;
access_log off;
add_header Cache-Control "public";
}
@@ -57,7 +57,7 @@ http {
# Javascript and CSS files
location ~* \.(?:css|js)$ {
try_files $uri =404;
expires 1y;
expires 1m;
access_log off;
add_header Cache-Control "public";
}