Merge pull request '[iacore.conf] cache resources' (#4) from iacore/nginx:iacore-patch-1 into main

Reviewed-on: exozyme/nginx#4
This commit is contained in:
Anthony Wang 2023-04-13 20:01:09 +00:00
commit 613e03be26

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