Remove cache-control public and better handle svgz files
Fixes: #86 Fixes: #134
This commit is contained in:
parent
351e70671e
commit
d2f4e5c68f
|
@ -19,11 +19,19 @@ location ~* \.(?:rss|atom)$ {
|
|||
}
|
||||
|
||||
# Media: images, icons, video, audio, HTC
|
||||
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
|
||||
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ {
|
||||
access_log off;
|
||||
add_header Cache-Control "max-age=2592000";
|
||||
}
|
||||
|
||||
# Media: svgz files are already compressed.
|
||||
location ~* \.svgz$ {
|
||||
expires 1M;
|
||||
access_log off;
|
||||
gzip off;
|
||||
add_header Cache-Control "max-age=2592000";
|
||||
}
|
||||
|
||||
# CSS and Javascript
|
||||
location ~* \.(?:css|js)$ {
|
||||
add_header Cache-Control "max-age=31536000";
|
||||
|
|
Loading…
Reference in New Issue