Snippets
This commit is contained in:
parent
d3c15bce86
commit
eb6a4bde5b
8 changed files with 35 additions and 0 deletions
17
s/static
Normal file
17
s/static
Normal file
|
@ -0,0 +1,17 @@
|
|||
location ~* \.(?:manifest|appcache|html?|xml|json)$ {
|
||||
expires -1;
|
||||
}
|
||||
|
||||
location ~* \.(?:jpe?g|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
|
||||
expires 1M;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location ~* \.(?:css|js)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
Loading…
Add table
Reference in a new issue