首頁  >  問答  >  主體

快取 - 請教這兩個 nginx 設定是什麼意思?

雷雷
phpcn_u1582phpcn_u15822712 天前464

全部回覆(2)我來回復

  • 漂亮男人

    漂亮男人2017-05-16 17:28:19

    proxy_cache_min_uses 3; #3次查詢之後結果會快取
    proxy_cache_bypass $cookie_nocache $arg_nocache;

    cookie_nocache和arg_nocache這兩個變數不為空時該次請求結果不會從快取中取出

    回覆
    0
  • 高洛峰

    高洛峰2017-05-16 17:28:19

    http://nginx.org/cn/docs/http/ngx_http_proxy_module.html

    回覆
    0
  • 取消回覆