From 556575f501653de0caa5f1f49b63778968f82a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A4=E7=8E=84?= Date: Wed, 20 Sep 2023 08:16:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20update=20nginx.conf=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=9B=BA=E5=AE=9A=E7=BC=96=E8=AF=91=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=BC=93=E5=AD=98js=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E6=AD=A4=E9=85=8D=E7=BD=AE=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=20(#3045)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index ebf5e8de70d..1e21a8673ae 100644 --- a/nginx.conf +++ b/nginx.conf @@ -30,6 +30,9 @@ http { add_header 'Content-Length' 0; return 204; } + if ($request_filename ~* ^.*?.(html|htm|js)$) { + add_header Cache-Control no-cache; + } } } }