From 89de38fd1c722d38edea022d85868602571b727b Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Wed, 19 Jun 2024 10:11:51 +0200 Subject: [PATCH] Cache WebP files for 1 year too --- global/server/static-files.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global/server/static-files.conf b/global/server/static-files.conf index da52a95..c3cdd29 100644 --- a/global/server/static-files.conf +++ b/global/server/static-files.conf @@ -9,7 +9,7 @@ location ~* \.(?:rss|atom)$ { } # Caches images, icons, video, audio, HTC, etc. -location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ { +location ~* \.(?:jpg|jpeg|gif|png|webp|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ { expires 1y; access_log off; } @@ -39,4 +39,4 @@ location = /robots.txt { try_files $uri $uri/ /index.php?$args; access_log off; log_not_found off; -} \ No newline at end of file +}