location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires -1; error_log off; access_log /dev/null; } location ~ .*\.(js|css|html)?$ { expires -1; error_log off; access_log /dev/null; add_header Cache-Control no-cache; }