Created
January 2, 2018 18:08
-
-
Save aprakasa/d46f5fa7682410a547b46ca78a34c6af to your computer and use it in GitHub Desktop.
Nginx Expires Header
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 ~* \.(css|js)$ { | |
expires 365d; | |
} | |
location ~* \.(jpe?g|png|gif|ico|ogg|mp4|woff2?|ttf|otf|svg)$ { | |
expires 30d; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment