From 8b149bc7b3f4d87fa1d4ebab8993e65fd80a7fab Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 9 Jul 2023 19:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20nginx.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 92255bf9..3c54d364 100644 --- a/nginx.conf +++ b/nginx.conf @@ -27,12 +27,17 @@ http { location / { - expires 600s; - add_header Cache-Control must-revalidate; + expires off; + add_header Cache-Control "no-cache, no-store, must-revalidate"; root /app/public; index index.html; } + location /assets { + expires 7d; + add_header Cache-Control "public"; + } + location /api/v1/site/icon/ { # 站点图标缓存 proxy_cache my_cache;