Add cache header for main website static resources

main
Marko Korhonen 3 years ago
parent 088bc31bbf
commit 699cbbcc16

@ -6,6 +6,12 @@ server {
location / {
root /korhonen.cc;
index index.html;
location ~* \.(?:css|js|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
}
# Use hugo 404 page

Loading…
Cancel
Save