Created
April 3, 2013 21:34
-
-
Save mondalaci/5305581 to your computer and use it in GitHub Desktop.
Nginx configuration fragment for caching server-side resources forever through a versioned URL scheme.
This file contains hidden or 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
rewrite ^/static/[^/]+/(.*)$ /$1 last; | |
location ^~ /static/ { | |
expires max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment