forked from exozyme/nginx
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:
commit
613e03be26
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