From 274bc504f2cd65985a3b841c09ed51ee77fc047a Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 24 Aug 2022 17:52:17 -0400 Subject: cache --- cyfraeviolae.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf index a316753..db4fac7 100644 --- a/cyfraeviolae.conf +++ b/cyfraeviolae.conf @@ -1,11 +1,6 @@ server { server_name cyfraeviolae.org; - location ~* \.(?:css|js|html|ico)$ { - expires 1h; - add_header Cache-Control "public"; - } - location /forbidden-salamanders { proxy_pass http://127.0.0.1:9010/; } @@ -50,11 +45,15 @@ server { location / { root /srv/cyfraeviolae; + expires 1h; + add_header Cache-Control "public"; } error_page 404 /404.html; location = /404.html { root /srv/cyfraeviolae; + expires 1h; + add_header Cache-Control "public"; } listen 443 ssl; # managed by Certbot -- cgit v1.2.3