location ~* \.(?:manifest|appcache|html?|xml|json)$ { expires -1; } location ~* \.(?:jpe?g|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; add_header Cache-Control "public"; } location ~* \.(?:css|js)$ { expires 1y; add_header Cache-Control "public"; } location ~ /\.ht { deny all; }