From ffbbbc240874741d7ce1b9719bfb5f7cd4ce94ab Mon Sep 17 00:00:00 2001 From: inman Date: Fri, 24 Jul 2026 16:47:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=9F=E4=BA=A7=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/miniprogram/src/pages/index/index.tsx | 2 +- docker/admin.nginx.conf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/miniprogram/src/pages/index/index.tsx b/apps/miniprogram/src/pages/index/index.tsx index e336653..c3856eb 100644 --- a/apps/miniprogram/src/pages/index/index.tsx +++ b/apps/miniprogram/src/pages/index/index.tsx @@ -4,7 +4,7 @@ import { useDidShow } from "@tarojs/taro"; import { createH5Ticket, getToken } from "../../services/api"; const H5_URL = String(process.env.TARO_APP_H5_URL ?? "https://wanderq.nianxx.com"); -const H5_CACHE_VERSION = "auth-20260724-v1"; +const H5_CACHE_VERSION = "auth-20260724-v2"; function buildH5Src(ticket?: string) { const separator = H5_URL.includes("?") ? "&" : "?"; diff --git a/docker/admin.nginx.conf b/docker/admin.nginx.conf index 3aa17e6..0481653 100644 --- a/docker/admin.nginx.conf +++ b/docker/admin.nginx.conf @@ -5,6 +5,12 @@ server { root /usr/share/nginx/html; index index.html; + location = /index.html { + add_header Cache-Control "no-cache, no-store, must-revalidate" always; + add_header Pragma "no-cache" always; + add_header Expires "0" always; + } + location / { try_files $uri $uri/ /index.html; }