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

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

    <legend id='3J1In'><style id='3J1In'><dir id='3J1In'><q id='3J1In'></q></dir></style></legend>

      <bdo id='3J1In'></bdo><ul id='3J1In'></ul>
  1. <small id='3J1In'></small><noframes id='3J1In'>

    1. <tfoot id='3J1In'></tfoot>

      哪些瀏覽器在緩存 XMLHTTPRequest 響應時存在問題

      Which browsers have problems caching XMLHTTPRequest responses?(哪些瀏覽器在緩存 XMLHTTPRequest 響應時存在問題?)
          <tbody id='E016P'></tbody>

            <tfoot id='E016P'></tfoot>

              <legend id='E016P'><style id='E016P'><dir id='E016P'><q id='E016P'></q></dir></style></legend>
                <bdo id='E016P'></bdo><ul id='E016P'></ul>

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

              • <i id='E016P'><tr id='E016P'><dt id='E016P'><q id='E016P'><span id='E016P'><b id='E016P'><form id='E016P'><ins id='E016P'></ins><ul id='E016P'></ul><sub id='E016P'></sub></form><legend id='E016P'></legend><bdo id='E016P'><pre id='E016P'><center id='E016P'></center></pre></bdo></b><th id='E016P'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='E016P'><tfoot id='E016P'></tfoot><dl id='E016P'><fieldset id='E016P'></fieldset></dl></div>
                本文介紹了哪些瀏覽器在緩存 XMLHTTPRequest 響應時存在問題?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                目前流行的瀏覽器是否存在緩存* XMLHttpRequest 響應的特殊問題,我需要注意這些問題?

                Do any of the currently popular browsers have particular problems caching* XMLHttpRequest responses that I need to be aware of?

                我希望能夠在每個頁面上包含 XMLHttpRequest 查詢,作為動態(tài)加載與頁面類型相關(guān)的內(nèi)容(即 JSON)或行為(如 eval()ed Javascript)的方法,但想確保如果服務器發(fā)送了正確的標頭,它從服務器接收的資源可以被緩存.

                I'd like to be able to include XMLHttpRequest queries on every page as a method of dynamically loading content (ie JSON) or behaviour (like eval()ed Javascript) relevant to the type of page, but wanted to make sure that the resources it receives from the server could be cached, if the server sent the right headers.

                我擔心閱讀 這篇文章Firefox 1.1 等瀏覽器不會緩存通過 XMLHTTPRequest 獲得的任何內(nèi)容,并且無論服務器發(fā)送的標頭如何,它總是會完全發(fā)送新數(shù)據(jù)(使用 Cache-Control 且沒有 If-Modified-Since).

                I was concerned to read this article which mentions that browsers such as Firefox 1.1 do not cache any content obtained via XMLHTTPRequest, and that it always requests new data is sent completely (with Cache-Control and no If-Modified-Since) regardless of headers sent by the server.

                顯然那篇文章已經(jīng)很老了——我什至不記得有 Firefox 1.1;那么對于當前流行的瀏覽器,我需要考慮哪些因素?當我特別想要緩存響應時有什么技巧嗎?

                Obviously that article is very old - I don't even remember a Firefox 1.1; so what are the considerations I need to make for current popular browsers and is there any trick for when I specifically want responses to be cached?

                **為了澄清我的問題,緩存是指客戶端緩存,其中服務器發(fā)布新鮮信息(以 Cache-Control: max-age 指令或 Expires: 標頭的形式)并且瀏覽器存儲在其緩存中的響應副本以及到期日期,以便可以從瀏覽器緩存中滿足從后續(xù)頁面發(fā)出的相同資源的未來請求,而根本不需要與服務器進行任何聯(lián)系.所有主流瀏覽器都對大多數(shù)內(nèi)容正確執(zhí)行此操作,但我聽說 Firefox 無法對 XMLHttpRequest 內(nèi)容執(zhí)行此操作.我要問的是,是否有人知道任何現(xiàn)代瀏覽器在使用 XMLHttpRequest 時不根據(jù)規(guī)范緩存響應的情況.*

                **To clarify my question, by caching, I mean client-side caching, where the server issues freshness information (in the form of a Cache-Control: max-age directive or an Expires: header) and the browser stores a copy of the response in its cache along with an expiry date, so that future requests for the same resource issued from subsequent pages can be satisfied from the browser cache without the need for any contact with the server at all. All major browsers do this correctly for most content, but I've heard that Firefox cannot do this for XMLHttpRequest content. What I'm asking is if anyone knows of cases where any of the modern browsers do not cache responses according to the spec when using XMLHttpRequest.*

                推薦答案

                Mark Nottingham 有 an一組出色的功能測試,展示了瀏覽器 XMLHttpRequest 緩存行為.在您想要支持的瀏覽器中加載頁面,并確定您可以依賴哪些技術(shù)以及不能依賴哪些技術(shù)來緩存您的響應.

                Mark Nottingham has an excellent set of functional tests that demonstrate browser XMLHttpRequest caching behaviour. Load up the page in the browsers you want to support and work out what techniques you can and cannot rely on to have your response cached.

                這篇關(guān)于哪些瀏覽器在緩存 XMLHTTPRequest 響應時存在問題?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調(diào)用完成)
                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屋-程序員軟件開發(fā)技術(shù)分
                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 部分內(nèi)容)

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

              • <legend id='FII7B'><style id='FII7B'><dir id='FII7B'><q id='FII7B'></q></dir></style></legend>

                      <tbody id='FII7B'></tbody>

                        <i id='FII7B'><tr id='FII7B'><dt id='FII7B'><q id='FII7B'><span id='FII7B'><b id='FII7B'><form id='FII7B'><ins id='FII7B'></ins><ul id='FII7B'></ul><sub id='FII7B'></sub></form><legend id='FII7B'></legend><bdo id='FII7B'><pre id='FII7B'><center id='FII7B'></center></pre></bdo></b><th id='FII7B'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='FII7B'><tfoot id='FII7B'></tfoot><dl id='FII7B'><fieldset id='FII7B'></fieldset></dl></div>
                          <bdo id='FII7B'></bdo><ul id='FII7B'></ul>
                        • <tfoot id='FII7B'></tfoot>
                        • 主站蜘蛛池模板: 国产精品久久 | 99亚洲精品 | 欧美大片一区二区 | 福利一区二区 | 一区二区不卡视频 | 久久久久久91香蕉国产 | 男女啪啪高潮无遮挡免费动态 | 一区二区三区国产精品 | 国产片一区二区三区 | 久久av一区 | 夜久久| 国产日韩一区二区 | 国产激情一区二区三区 | 日韩精品成人免费观看视频 | 18成人在线观看 | 欧洲成人 | 亚洲成人免费av | 国产精品久久久久久久免费大片 | 国产一级免费视频 | 九九久久国产精品 | 成人日b视频 | 噜啊噜在线 | www.欧美.com | 日本不卡一区二区 | 欧美一a | 国产激情视频在线观看 | 中文字幕日韩欧美 | 亚洲天堂一区 | 亚洲精品免费观看 | 国产探花在线观看视频 | 精品中文字幕一区 | 视频在线观看亚洲 | 最新午夜综合福利视频 | 日韩在线一区二区三区 | 91精品国产综合久久久久久蜜臀 | 国产精品一区二区不卡 | 99re在线视频免费观看 | 日韩一区二区免费视频 | 日韩欧美中文 | 手机av在线 | 天天看天天操 |