+# Expire rules for static content
+# cache.appcache, your document html and data
+location ~* \.(?:manifest|appcache|html?|xml|json)$ {
+ # access_log logs/static.log; # I don't usually include a static log
+location ~* \.(?:rss|atom)$ {
+ add_header Cache-Control "public";
+# Media: images, icons, video, audio, HTC
+location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
+ add_header Cache-Control "public";
+location ~* \.(?:css|js)$ {
+ add_header Cache-Control "public";