Created
December 30, 2016 23:24
-
-
Save evemilano/93ab33973323e4147ca465ad3884f38b to your computer and use it in GitHub Desktop.
Browser Caching NGINX sites-available
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
. . . | |
# Default server configuration | |
# | |
# Expires map | |
map $sent_http_content_type $expires { | |
default off; | |
text/html epoch; | |
text/css max; | |
application/javascript max; | |
~image/ max; | |
} | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
expires $expires; | |
. . . |
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/