Created
May 27, 2011 11:11
-
-
Save mhaylock/995049 to your computer and use it in GitHub Desktop.
nginx config to add Cache-Control header to rails static cache files
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 / { | |
try_files /system/maintenance.html $uri $uri/index.html $uri.html @passenger; | |
expires 60s; | |
add_header Cache-Control public; | |
add_header Vary Accept-Encoding; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment