Created
March 21, 2016 02:35
-
-
Save lgh06/73acf079e19f0665e57a to your computer and use it in GitHub Desktop.
nginx expire cache-control
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
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { | |
expires 1h; | |
} | |
location ~* \.(?:html)$ { | |
expires 1h; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment