Created
August 10, 2016 21:42
-
-
Save sander1/89ffe7a1ed37031168781e70e740ebbf to your computer and use it in GitHub Desktop.
nginx: link to minified css/js if available
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
location ~ ^(.+)\.(css|js)$ { | |
try_files $1.min.$2 $uri =404; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment