forked from exozyme/nginx
[iacore.conf] cache resources
See http://nginx.org/en/docs/http/ngx_http_headers_module.html I did not add `Expires` to allow re-validation on each request.
This commit is contained in:
parent
06bb8cd846
commit
65ea204f75
1 changed files with 5 additions and 0 deletions
|
@ -12,4 +12,9 @@ server {
|
|||
location / {
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
|
||||
location ~* .(eot|otf|woff|ttf|css|js|svg|jpg
|
||||
|jpeg|gif|png|ico|bmp|webp)$ {
|
||||
add_header Cache-Control max-age=35436000;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue