cookie 致使 proxy_cache 不生效

spa

proxy_ignore_headers "Cache-Control" "Expires" "Set-Cookie" "Vary"; server

解決 io

location / { stream

        proxy_cache cache_m;         proxy_cache_valid  200 304 6h;         proxy_cache_key $host$uri$is_args$args;         proxy_ignore_headers "Cache-Control" "Expires" "Set-Cookie" "Vary";         add_header  Nginx-Cache "$upstream_cache_status";         include proxy.conf;         proxy_pass http://server;         expires 6h;     }
相關文章
相關標籤/搜索