Last active
February 16, 2017 10:13
-
-
Save Antoinebr/2dede0591ad4be17bdcb9230ffcd4904 to your computer and use it in GitHub Desktop.
browser-caching / Gzip
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
# | |
# Gzip Config | |
# | |
gzip on; | |
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; | |
# | |
# Browser Caching config | |
# | |
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { | |
expires 365d; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment