From 54e01dcb7a260cfc09bf88bbe7f25d70c9fdb2ce Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sat, 11 Feb 2023 00:22:46 +0100 Subject: [PATCH] Adjust nginx config --- defaults/nginx.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults/nginx.conf b/defaults/nginx.conf index 5061a5d..8243079 100644 --- a/defaults/nginx.conf +++ b/defaults/nginx.conf @@ -40,12 +40,16 @@ http { } location ~* \.(js|css)$ { - expires modified 1h; + expires 1h; } location ~ ^/dwd/(icons|warn_icons)/ { root /home/weewx/public_html; - expires 1h; + expires 7d; + } + + location ~ ^/dwd/[\w]+\.(gif|png) { + expires modified 1h; } } }