Set cache expiry of css and js files to 1 year
This commit is contained in:
@@ -24,7 +24,7 @@ location ~* \.(?:css(\.map)?|js(\.map)?)$ {
|
|||||||
more_set_headers "Cache-Control : public, no-transform";
|
more_set_headers "Cache-Control : public, no-transform";
|
||||||
access_log off;
|
access_log off;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
expires 30d;
|
expires 1y;
|
||||||
}
|
}
|
||||||
# Security settings for better privacy
|
# Security settings for better privacy
|
||||||
# Deny hidden files
|
# Deny hidden files
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ location /wp-content/cache {
|
|||||||
more_set_headers 'Access-Control-Allow-Origin : *';
|
more_set_headers 'Access-Control-Allow-Origin : *';
|
||||||
access_log off;
|
access_log off;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
expires 30d;
|
expires 1y;
|
||||||
}
|
}
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
#Prevent Direct Access Of PHP Files From Web Browsers
|
#Prevent Direct Access Of PHP Files From Web Browsers
|
||||||
|
|||||||
Reference in New Issue
Block a user