久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <small id='E6P6J'></small><noframes id='E6P6J'>

        <bdo id='E6P6J'></bdo><ul id='E6P6J'></ul>

      <legend id='E6P6J'><style id='E6P6J'><dir id='E6P6J'><q id='E6P6J'></q></dir></style></legend>
      1. <tfoot id='E6P6J'></tfoot>
        <i id='E6P6J'><tr id='E6P6J'><dt id='E6P6J'><q id='E6P6J'><span id='E6P6J'><b id='E6P6J'><form id='E6P6J'><ins id='E6P6J'></ins><ul id='E6P6J'></ul><sub id='E6P6J'></sub></form><legend id='E6P6J'></legend><bdo id='E6P6J'><pre id='E6P6J'><center id='E6P6J'></center></pre></bdo></b><th id='E6P6J'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='E6P6J'><tfoot id='E6P6J'></tfoot><dl id='E6P6J'><fieldset id='E6P6J'></fieldset></dl></div>

        如何判斷 XMLHTTPRequest 是否命中瀏覽器緩存

        How to tell if an XMLHTTPRequest hit the browser cache(如何判斷 XMLHTTPRequest 是否命中瀏覽器緩存)

                <bdo id='PIQRy'></bdo><ul id='PIQRy'></ul>
              • <i id='PIQRy'><tr id='PIQRy'><dt id='PIQRy'><q id='PIQRy'><span id='PIQRy'><b id='PIQRy'><form id='PIQRy'><ins id='PIQRy'></ins><ul id='PIQRy'></ul><sub id='PIQRy'></sub></form><legend id='PIQRy'></legend><bdo id='PIQRy'><pre id='PIQRy'><center id='PIQRy'></center></pre></bdo></b><th id='PIQRy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PIQRy'><tfoot id='PIQRy'></tfoot><dl id='PIQRy'><fieldset id='PIQRy'></fieldset></dl></div>

                <legend id='PIQRy'><style id='PIQRy'><dir id='PIQRy'><q id='PIQRy'></q></dir></style></legend>

                    <tbody id='PIQRy'></tbody>

                  <tfoot id='PIQRy'></tfoot>

                1. <small id='PIQRy'></small><noframes id='PIQRy'>

                  本文介紹了如何判斷 XMLHTTPRequest 是否命中瀏覽器緩存的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  如果可以判斷(在 javascript 執行中)GET XMLHTTPRequest 是否命中瀏覽器緩存而不是從服務器獲取響應?

                  If it possible to tell (within javascript execution) if a GET XMLHTTPRequest hit the browser cache instead of getting its response from the server?

                  推薦答案

                  來自 XMLHttpRequest 規范:

                  對于用戶代理導致的 304 Not Modified 響應生成的條件請求用戶代理必須像服務器一樣操作用適當的內容給出了 200 OK 響應.

                  For 304 Not Modified responses that are a result of a user agent generated conditional request the user agent must act as if the server gave a 200 OK response with the appropriate content.

                  換句話說,瀏覽器將始終給出狀態碼 200 OK,即使對于命中瀏覽器緩存的請求也是如此.

                  In other words, the browser will always give status code 200 OK, even for requests that hit the browser cache.

                  但是,規范中還說:

                  用戶代理必須允許作者請求標頭覆蓋自動緩存驗證(例如 If-None-Match 或 If-Modified-Since),在這種情況下必須通過 304 Not Modified 響應.

                  The user agent must allow author request headers to override automatic cache validation (e.g. If-None-Match or If-Modified-Since), in which case 304 Not Modified responses must be passed through.

                  因此,有一種解決方法可以使 304 Not Modified 響應對您的 JavaScript 代碼可見.

                  So, there is a workaround to make the 304 Not Modified responses visible to your JavaScript code.

                  這篇關于如何判斷 XMLHTTPRequest 是否命中瀏覽器緩存的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                      <legend id='qi8EW'><style id='qi8EW'><dir id='qi8EW'><q id='qi8EW'></q></dir></style></legend>
                      <i id='qi8EW'><tr id='qi8EW'><dt id='qi8EW'><q id='qi8EW'><span id='qi8EW'><b id='qi8EW'><form id='qi8EW'><ins id='qi8EW'></ins><ul id='qi8EW'></ul><sub id='qi8EW'></sub></form><legend id='qi8EW'></legend><bdo id='qi8EW'><pre id='qi8EW'><center id='qi8EW'></center></pre></bdo></b><th id='qi8EW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qi8EW'><tfoot id='qi8EW'></tfoot><dl id='qi8EW'><fieldset id='qi8EW'></fieldset></dl></div>

                      • <bdo id='qi8EW'></bdo><ul id='qi8EW'></ul>
                          <tbody id='qi8EW'></tbody>

                        <tfoot id='qi8EW'></tfoot>

                          1. <small id='qi8EW'></small><noframes id='qi8EW'>

                          2. 主站蜘蛛池模板: 一区二区三区国产在线观看 | 黄色av观看 | www.黄色片视频 | 国内精品在线视频 | 日韩中文字幕免费在线 | 亚洲精品视频一区 | 日韩在线免费播放 | 成人二区 | 91激情电影| 亚洲v日韩v综合v精品v | 国产在线不卡视频 | 精品人伦一区二区三区蜜桃网站 | 亚洲国产一区二区视频 | 久久综合一区 | 久久久久久亚洲欧洲 | 亚洲+变态+欧美+另类+精品 | 成人免费精品视频 | 男女又爽又黄视频 | 日韩精品一区二区三区中文字幕 | 羞羞的视频在线观看 | 极品粉嫩国产48尤物在线播放 | 午夜爽爽爽男女免费观看 | 精品美女| 欧美日韩国产在线 | 成人h视频在线观看 | 99国产精品久久久久久久 | 99精品一区二区 | 亚洲精品2 | 91久久精品日日躁夜夜躁国产 | 在线观看视频一区 | 国产在视频一区二区三区吞精 | 欧美日韩综合一区 | 美女天天操 | 狠狠干影院 | 亚洲综合网站 | 91亚洲国产成人久久精品网站 | 免费日本视频 | 精品国产乱码久久久久久a丨 | 羞羞视频免费在线观看 | 国产精品激情小视频 | 国产在线中文字幕 |