Added some comments to the nginx config relating to expires.

This commit is contained in:
Mark Wolfe 2011-05-29 11:31:20 +10:00 committed by Paul Irish
parent c46faae757
commit 8e4c2d5125
1 changed files with 8 additions and 1 deletions

View File

@ -104,7 +104,14 @@ http {
# Custom 404 page # Custom 404 page
error_page 404 /404.html; error_page 404 /404.html;
expires 1M; # This is pretty long expiry and assume your using
# cachebusting with query params like
# <script src="application.js?20110529">
#
# Just be careful if your using this on a frequently
# updated static site. You may want to crank this back
# to 5m which is 5 minutes.
expires 1M; # yes one month
# Static assets # Static assets
location ~* ^.+\.(manifest|appcache)$ { location ~* ^.+\.(manifest|appcache)$ {