diff --git a/example/sit/nginx/nginx.conf b/example/sit/nginx/nginx.conf index 494282e..0ad7c46 100644 --- a/example/sit/nginx/nginx.conf +++ b/example/sit/nginx/nginx.conf @@ -9,6 +9,16 @@ http { default_type application/octet-stream; lua_package_path "/usr/local/openresty/lualib/?.lua;;"; + # 通用头:全局禁止缓存 + # ================================ + add_header Cache-Control "no-store, no-cache, must-revalidate" always; + add_header Pragma "no-cache" always; + add_header Expires "0" always; + + # 禁用 Nginx 自身缓存 + proxy_no_cache 1; + proxy_cache_bypass 1; + upstream next_dashboard { server 127.0.0.1:3001; keepalive 16;