location ~* .(eot|otf|woff|woff2|ttf|js|jpg|jpeg|gif|png|bmp|ico|svgz|svg|mid|midi|wav|mp3|ogg|ogv|mp4|swf)$ { expires max; log_not_found off; access_log off; add_header Cache-Control "public, no-transform"; } location ~* .(css|js|rss|atom|zip|tgz|gz|rar|bz2|tar|pdf|doc|rtf|xls|exe|ppt)$ { expires 30d; log_not_found off; access_log off; }