Disable caching in SIT Nginx config (#631)

This commit is contained in:
shenlan 2025-11-02 09:06:57 +08:00 committed by GitHub
parent bb84b65845
commit 175eecfb84

View File

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