From c09a85ca65448926f39538d81523424ceb7ba342 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 13 Apr 2024 12:27:56 +0200 Subject: [PATCH] docker: fix nginx site config --- docker/nginx/leftypol.conf | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/docker/nginx/leftypol.conf b/docker/nginx/leftypol.conf index cdb28076..83f8b10a 100644 --- a/docker/nginx/leftypol.conf +++ b/docker/nginx/leftypol.conf @@ -20,22 +20,7 @@ server { # Expire rules for static content # Media: images, icons, video, audio, HTC - location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { - expires 1M; - access_log off; - log_not_found off; - add_header Cache-Control "public"; - } - # CSS and Javascript - location ~* \.(?:css|js)$ { - expires 1y; - access_log off; - log_not_found off; - add_header Cache-Control "public"; - } - # Expire rules for static content - # Media: images, icons, video, audio, HTC - location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { + location ~* \.(?:jpg|jpeg|gif|png|webp|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; access_log off; log_not_found off;