nginx expires config
location ~* ^.+\.(js|css|php|jpg|jpeg|gif|png|pdf|zip|rar)$ { root /var/www/apps/myapp/public; access_log off; expires 7d; }
DZone Snippets > indiehead > nginx
11384 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
John http://www.red91.com
location ~* ^.+\.(js|css|php|jpg|jpeg|gif|png|pdf|zip|rar)$ { root /var/www/apps/myapp/public; access_log off; expires 7d; }
# output compression saves bandwidth gzip on; gzip_proxied any; gzip_http_version 1.1; #gzip_min_length 1100; gzip_comp_level 5; #gzip_buffers 4 8k; gzip_types text/plain text/html text/xml text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/atom+xml; #gzip_vary on; #gzip_disable "MSIE [1-6]\.";