Created
June 25, 2009 15:41
-
-
Save adambyrtek/135931 to your computer and use it in GitHub Desktop.
Expires header for assets served by 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
# Set Expires to maximum for assets with timestamp | |
location ~* \.(ico|css|js|gif|jp?g|png) { | |
if ($args ~* [0-9]+$) { | |
expires max; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment