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>
                        • 主站蜘蛛池模板: 河南中整光饰机械有限公司-抛光机,去毛刺抛光机,精密镜面抛光机,全自动抛光机械设备 | 美国PARKER齿轮泵,美国PARKER柱塞泵,美国PARKER叶片泵,美国PARKER电磁阀,美国PARKER比例阀-上海维特锐实业发展有限公司二部 | 棉服定制/厂家/公司_棉袄订做/价格/费用-北京圣达信棉服 | 退火炉,燃气退火炉,燃气热处理炉生产厂家-丹阳市丰泰工业炉有限公司 | 鼓风干燥箱_真空烘箱_高温干燥箱_恒温培养箱-上海笃特科学仪器 | 常州企业采购平台_常州MRO采购公司_常州米孚机电设备有限公司 | 济南网站策划设计_自适应网站制作_H5企业网站搭建_济南外贸网站制作公司_锐尚 | 电力测功机,电涡流测功机,磁粉制动器,南通远辰曳引机测试台 | 济南网站策划设计_自适应网站制作_H5企业网站搭建_济南外贸网站制作公司_锐尚 | 选矿设备-新型重选设备-金属矿尾矿重选-青州冠诚重工机械有限公司 | 济南玻璃安装_济南玻璃门_济南感应门_济南玻璃隔断_济南玻璃门维修_济南镜片安装_济南肯德基门_济南高隔间-济南凯轩鹏宇玻璃有限公司 | 建大仁科-温湿度变送器|温湿度传感器|温湿度记录仪_厂家_价格-山东仁科 | 今日扫码_溯源二维码_产品防伪一物一码_红包墙营销方案 | 重庆小面培训_重庆小面技术培训学习班哪家好【终身免费复学】 | 玉米加工设备,玉米深加工机械,玉米糁加工设备.玉米脱皮制糁机 华豫万通粮机 | 江苏农村商业银行招聘网_2024江苏农商行考试指南_江苏农商行校园招聘 | 厦门ISO认证|厦门ISO9001认证|厦门ISO14001认证|厦门ISO45001认证-艾索咨询专注ISO认证行业 | 旋片真空泵_真空泵_水环真空泵_真空机组-深圳恒才机电设备有限公司 | 篮球地板厂家_舞台木地板品牌_体育运动地板厂家_凯洁地板 | NMRV减速机|铝合金减速机|蜗轮蜗杆减速机|NMRV减速机厂家-东莞市台机减速机有限公司 | 光栅尺_Magnescale探规_磁栅尺_笔式位移传感器_苏州德美达 | 美的商用净水器_美的直饮机_一级代理经销商_Midea租赁价格-厂家反渗透滤芯-直饮水批发品牌售后 | Jaeaiot捷易科技-英伟达AI显卡模组/GPU整机服务器供应商 | 烘干设备-热泵烘干机_广东雄贵能源设备有限公司 | 铆钉机|旋铆机|东莞旋铆机厂家|鸿佰专业生产气压/油压/自动铆钉机 | 奇酷教育-Python培训|UI培训|WEB大前端培训|Unity3D培训|HTML5培训|人工智能培训|JAVA开发的教育品牌 | LNG鹤管_内浮盘价格,上装鹤管,装车撬厂家-连云港赛威特机械 | 密封无忧网 _ 专业的密封产品行业信息网 | 山东钢衬塑罐_管道_反应釜厂家-淄博富邦滚塑防腐设备科技有限公司 | 压力控制器,差压控制器,温度控制器,防爆压力控制器,防爆温度控制器,防爆差压控制器-常州天利智能控制股份有限公司 | 半自动预灌装机,卡式瓶灌装机,注射器灌装机,给药器灌装机,大输液灌装机,西林瓶灌装机-长沙一星制药机械有限公司 | 深圳市万色印象美业有限公司| 机械加工_绞车配件_立式离心机_减速机-洛阳三永机械厂 | 上海宿田自动化设备有限公司-双面/平面/单面贴标机 | 招商帮-一站式网络营销服务|互联网整合营销|网络推广代运营|信息流推广|招商帮企业招商好帮手|搜索营销推广|短视视频营销推广 | 集菌仪厂家_全封闭_封闭式_智能智能集菌仪厂家-上海郓曹 | 依维柯自动挡房车,自行式国产改装房车,小型房车价格,中国十大房车品牌_南京拓锐斯特房车 - 南京拓锐斯特房车 | 生物制药洁净车间-GMP车间净化工程-食品净化厂房-杭州波涛净化设备工程有限公司 | 施工电梯_齿条货梯_烟囱电梯_物料提升机-河南大诚机械制造有限公司 | 空压机网_《压缩机》杂志 | 微波消解仪器_智能微波消解仪报价_高压微波消解仪厂家_那艾 |