Created
December 30, 2016 23:01
-
-
Save evemilano/996928241d445d417fec76ca75eb5cca to your computer and use it in GitHub Desktop.
Abilitare il Browser Caching su NGINX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
} | |
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { | |
expires 365d; | |
} | |
location ~* \.(pdf)$ { | |
expires 30d; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Articolo: https://www.evemilano.com/2014/05/abilitare-browser-caching-wordpress-htaccess/