[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:
iacore 2023-04-13 19:42:55 +00:00
parent 06bb8cd846
commit 65ea204f75

View file

@ -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;
}
}