pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<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="l9ffndh" 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="hxnppvr" 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 查詢,作為動態加載與頁面類型相關的內容(即 JSON)或行為(如 eval()ed Javascript)的方法,但想確保如果服務器發送了正確的標頭,它從服務器接收的資源可以被緩存.

                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 獲得的任何內容,并且無論服務器發送的標頭如何,它總是會完全發送新數據(使用 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.

                顯然那篇文章已經很老了——我什至不記得有 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?

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

                **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 緩存行為.在您想要支持的瀏覽器中加載頁面,并確定您可以依賴哪些技術以及不能依賴哪些技術來緩存您的響應.

                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.

                這篇關于哪些瀏覽器在緩存 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 部分內容)

                <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="fv7h5pz" 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>
                        • 主站蜘蛛池模板: 广东西屋电气有限公司-广东西屋电气有限公司 | 广州物流公司_广州货运公司_广州回程车运输 - 万信物流 | 上海单片机培训|重庆曙海培训分支机构—CortexM3+uC/OS培训班,北京linux培训,Windows驱动开发培训|上海IC版图设计,西安linux培训,北京汽车电子EMC培训,ARM培训,MTK培训,Android培训 | 奶茶加盟,奶茶加盟店连锁品牌-甜啦啦官网| 高速龙门架厂家_监控杆_多功能灯杆_信号灯杆_锂电池太阳能路灯-鑫世源照明 | 对辊式破碎机-对辊制砂机-双辊-双齿辊破碎机-巩义市裕顺机械制造有限公司 | 智能案卷柜_卷宗柜_钥匙柜_文件流转柜_装备柜_浙江福源智能科技有限公司 | 执业药师报名条件,考试时间,考试真题,报名入口—首页 | 仪器仪表网 - 永久免费的b2b电子商务平台 | 天长市晶耀仪表有限公司| 微型气泵-真空-蠕动-水泵-厂家-深圳市品亚科技有限公司 | 工业插头-工业插头插座【厂家】-温州罗曼电气 | 紧急切断阀_气动切断阀_不锈钢阀门_截止阀_球阀_蝶阀_闸阀-上海上兆阀门制造有限公司 | 光栅尺厂家_数显表维修-苏州泽升精密机械 | 水质传感器_水质监测站_雨量监测站_水文监测站-山东水境传感科技有限公司 | 棕刚玉-白刚玉厂家价格_巩义市东翔净水材料厂 | 无线讲解器-导游讲解器-自助讲解器-分区讲解系统 品牌生产厂家[鹰米讲解-合肥市徽马信息科技有限公司] | 超声波_清洗机_超声波清洗机专业生产厂家-深圳市好顺超声设备有限公司 | 重庆磨床过滤机,重庆纸带过滤机,机床伸缩钣金,重庆机床钣金护罩-重庆达鸿兴精密机械制造有限公司 | 喷砂机厂家_自动喷砂机生产_新瑞自动化喷砂除锈设备 | 黄石妇科医院_黄石东方女子医院_黄石东方妇产医院怎么样 | 爆破器材运输车|烟花爆竹运输车|1-9类危险品厢式运输车|湖北江南专用特种汽车有限公司 | 电力电子产业网 | 激光内雕_led玻璃_发光玻璃_内雕玻璃_导光玻璃-石家庄明晨三维科技有限公司 激光内雕-内雕玻璃-发光玻璃 | 东莞工作服_东莞工作服定制_工衣订做_东莞厂服 | 磷酸肌酸二钠盐,肌酐磷酰氯-沾化欣瑞康生物科技 | 带式压滤机_污泥压滤机_污泥脱水机_带式过滤机_带式压滤机厂家-河南恒磊环保设备有限公司 | 电缆接头_防水接头_电缆防水接头 - 乐清市新豪电气有限公司 | 深圳南财多媒体有限公司介绍| 动力配电箱-不锈钢配电箱-高压开关柜-重庆宇轩机电设备有限公司 聚天冬氨酸,亚氨基二琥珀酸四钠,PASP,IDS - 远联化工 | 飞利浦LED体育场灯具-吸顶式油站灯-飞利浦LED罩棚灯-佛山嘉耀照明有限公司 | 化妆品加工厂-化妆品加工-化妆品代加工-面膜加工-广东欧泉生化科技有限公司 | 铝单板_铝窗花_铝单板厂家_氟碳包柱铝单板批发价格-佛山科阳金属 | 苏州防水公司_厂房屋面外墙防水_地下室卫生间防水堵漏-苏州伊诺尔防水工程有限公司 | 四川成都干燥设备_回转筒干燥机_脉冲除尘器_输送设备_热风炉_成都川工星科机电设备有限公司 | 起好名字_取个好名字_好名网免费取好名在线打分 | 干粉砂浆设备_干混砂浆生产线_腻子粉加工设备_石膏抹灰砂浆生产成套设备厂家_干粉混合设备_砂子烘干机--郑州铭将机械设备有限公司 | 搪瓷反应釜厂家,淄博搪瓷反应釜-淄博卓耀 | 洗瓶机厂家-酒瓶玻璃瓶冲瓶机-瓶子烘干机-封口旋盖压盖打塞机_青州惠联灌装机械 | 精密五金冲压件_深圳五金冲压厂_钣金加工厂_五金模具加工-诚瑞丰科技股份有限公司 | 烟雾净化器-滤筒除尘器-防爆除尘器-除尘器厂家-东莞执信环保科技有限公司 |