Set cache expiry of css and js files to 1 year

This commit is contained in:
Yogesh Beniwal
2021-05-01 00:15:27 +08:00
parent 68cc21aa84
commit dbbdcc21de
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ location ~* \.(?:css(\.map)?|js(\.map)?)$ {
more_set_headers "Cache-Control : public, no-transform";
access_log off;
log_not_found off;
expires 30d;
expires 1y;
}
# Security settings for better privacy
# Deny hidden files

View File

@@ -75,7 +75,7 @@ location /wp-content/cache {
more_set_headers 'Access-Control-Allow-Origin : *';
access_log off;
log_not_found off;
expires 30d;
expires 1y;
}
location ~ \.php$ {
#Prevent Direct Access Of PHP Files From Web Browsers