Commit e89049b9 authored by Tobias Munk's avatar Tobias Munk Committed by GitHub

Merge pull request #3 from handcode/master

add expire header for static content
parents 1afa3e5b 27b81824
......@@ -40,6 +40,9 @@ http {
gzip on;
# don't use etag with expire
etag off;
server {
charset utf-8;
client_max_body_size 512M;
......@@ -56,7 +59,16 @@ http {
}
# uncomment to avoid processing of calls to non-existing static files by Yii
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|svg)$ {
# set expire Header
expires 6M;
#add_header Cache-Control "public";
add_header Last-Modified "";
# keep logs clean
log_not_found off;
try_files $uri =404;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment