From 09c182149538c1ac541408ad609ae4f8e3f286e6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Jun 2025 18:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ejenkins=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index d1da56e..541d305 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,5 +7,15 @@ server { location / { try_files $uri $uri/ /index.html; + + ## html不缓存 + if ($request_filename ~* .*\.(htm|html)$) + { + add_header Cache-Control "no-store"; + } + + + + } -} \ No newline at end of file +}