Merge pull request #376 from yogeshbeniwal/master
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";
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
expires 30d;
|
||||
expires 1y;
|
||||
}
|
||||
# Security settings for better privacy
|
||||
# Deny hidden files
|
||||
|
||||
@@ -94,7 +94,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
|
||||
|
||||
Reference in New Issue
Block a user