From 1efb9af7abf99e5b960f888fe97df584103f0ae4 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 10 Aug 2025 21:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20nginx.common.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx.common.conf | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docker/nginx.common.conf b/docker/nginx.common.conf index d748907b..04b54431 100644 --- a/docker/nginx.common.conf +++ b/docker/nginx.common.conf @@ -15,13 +15,6 @@ location ~* \.(png|jpg|jpeg|gif|ico|svg)$ { add_header Cache-Control "public, immutable"; } -# JS和CSS静态资源缓存 -location ~* \.(js|css)$ { - expires 30d; - add_header Cache-Control "public"; - add_header Vary Accept-Encoding; -} - # assets目录 location /assets { expires 1y;