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; }