cache.conf
618 Bytes
#set $cache_zone "off";
#set $cache_key "";
#set $influxtb "ngx_cache_wap";
#rewrite_by_lua_file conf/vhosts/lua_modules/lua_wap_cache.lua;
proxy_cache cache_one_wap;
proxy_cache_valid 200 1m;
#proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
#proxy_cache_revalidate on;
proxy_cache_min_uses 1;
#proxy_cache_lock on;
proxy_cache_key $host$uri$args;
#proxy_ignore_headers Cache-Control;
add_header X-Cache-Status $upstream_cache_status;
#log_by_lua_file conf/vhosts/lua_modules/lua_udp.lua;
# proxy_ignore_headers "Set-Cookie"; # 绝对不能加,加了存在串 sessionID 的隐患