<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 不緩存特定內容 對于一些更新比佳品頻繁的頁面,比如登錄頁面, 商品展示頁(因為有庫存),所以這些頁面不需要緩存; ## proxy_no_cache 根據某些變量來判斷是否需要緩存; 語法: ``` proxy_no_cache string; ``` 上下文: ``` http | server | location ``` ## proxy_no_bypass 語法: ``` proxy_no_bypass string; ``` 上下文: ``` http | server | location ``` ## 示例 上游服務器: 每個服務器下面各有一個index.html和index.txt文件; ``` server { listen 8081; location / { root html/8081; } } server { listen 8082; location / { root html/8082; } } ``` 代理服務器: ``` if ($request_uri ~ \.(txt|text)$ ) { //對URI進行判斷,如果請求的是.txt或.text結尾的,那么就給變量設置"no cache" set $nocache "no cache"; //nginx聲明變量的寫法 set $變量名 變量值 } location / { proxy_cache cache_zone; proxy_no_cache $nocache; //對變量$nocahe有值的請求不進行緩存 proxy_cache_valid 200 5m; add_header Nginx-Cache-Status "$upstream_cache_status"; proxy_pass http://back_end; } ``` 結果:請求index.html會被緩存,而index.txt是不會被緩存的; ![](https://img.kancloud.cn/14/c6/14c6ef497efd7ee8c9c69adc24d4d4cb_878x622.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看