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

    <bdo id='D3pAX'></bdo><ul id='D3pAX'></ul>
  • <small id='D3pAX'></small><noframes id='D3pAX'>

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

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

        <tfoot id='D3pAX'></tfoot>

      1. Service Worker 可以響應(yīng)同步的 XHR 請(qǐng)求嗎?

        Can Service Workers respond to synchronous XHR requests?(Service Worker 可以響應(yīng)同步的 XHR 請(qǐng)求嗎?)
          <tbody id='AdUT6'></tbody>

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

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

                <legend id='AdUT6'><style id='AdUT6'><dir id='AdUT6'><q id='AdUT6'></q></dir></style></legend>
                • 本文介紹了Service Worker 可以響應(yīng)同步的 XHR 請(qǐng)求嗎?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我想使用 Service Worker 來(lái)增強(qiáng)現(xiàn)有網(wǎng)站.特別是,我想通過(guò)讓 Service Worker 在實(shí)際資源不可用時(shí)使用占位符資源響應(yīng)請(qǐng)求來(lái)添加更好的離線支持.這種方法一直有效,但我遇到了障礙.站點(diǎn)中有幾個(gè)地方使用 同步 XHR 請(qǐng)求來(lái)加載某些資源,而我的 Service Worker 在 Chrome 中沒(méi)有接收到它們的事件.(請(qǐng)不要建議消除同步 XHR 請(qǐng)求.這是可取的,但超出了范圍.)

                  I would like to use Service Workers to enhance an existing web site. In particular, I would like to add better offline support by having Service Workers respond to requests with placeholder resources when the actual resources are not available. This approach had been working, but I've encountered an obstacle. There are a few places in the site where synchronous XHR requests are used to load certain resources, and my Service Worker doesn't receive events for them in Chrome. (Please don't suggest eliminating synchronous XHR requests. That's desired, but out-of-scope.)

                  Service Worker 是否可以響應(yīng)同步 XHR 請(qǐng)求?我可以想象這實(shí)現(xiàn)起來(lái)很復(fù)雜,如果不支持它會(huì)理解的.W3C 服務(wù)工作者規(guī)范(工作草案) 和WHATWG Fetch Specification (Living Standard),但我還沒(méi)有完成破譯.我希望能解釋一下規(guī)范如何描述是否應(yīng)支持這一點(diǎn),和/或?qū)τ嘘P(guān)指定或?qū)嵤┐诵袨榈挠懻摰娜魏我?

                  Is it supposed to be possible for a Service Worker to respond to synchronous XHR requests? I could imagine this being complicated to implement, and would understand if it wasn't supported. A "correct" answer should exist between the W3C Service Workers Specification (Working Draft) and the WHATWG Fetch Specification (Living Standard), but I haven't finished deciphering them. I would appreciate an explanation of how the specifications describe whether or not this should be supported, and/or any references to discussions about specifying or implementing this behaviour.

                  推薦答案

                  理論上

                  是的,Service Worker 應(yīng)該能夠響應(yīng)同步 XHR 請(qǐng)求.這在規(guī)范中沒(méi)有明確說(shuō)明,但是沒(méi)有例外會(huì)導(dǎo)致同步 XHR 請(qǐng)求被區(qū)別對(duì)待,并且 W3C Web 平臺(tái)測(cè)試 (WPT) 套件有一個(gè)測(cè)試用例來(lái)驗(yàn)證它是否受支持:wpt/service-workers/service-worker/fetch-request-xhr-sync.https.html.

                  從 2019 年 1 月起,Service Worker 可以在 Firefox 和 Edge 中響應(yīng)同步 XHR 請(qǐng)求,但不能在 Chrome 或 Safari 中響應(yīng).Chrome 計(jì)劃很快添加支持,但我們不知道 Safari 是否會(huì)這樣做.

                  As of January 2019, service workers can respond to synchronous XHR requests in Firefox and Edge, but not in Chrome or Safari. Chrome is planning to add support soon, but we don't know if Safari ever will.

                  提供最新的瀏覽器支持矩陣 在 WPT.fyi.您可以在自己的瀏覽器中運(yùn)行 WPT 測(cè)試用例 https://w3c-test.org/service-workers/service-worker/fetch-request-xhr-sync.https.html.

                  An up-to-date browser support matrix is available at WPT.fyi. You can run the WPT test case in your own browser at https://w3c-test.org/service-workers/service-worker/fetch-request-xhr-sync.https.html.

                  這篇關(guān)于Service Worker 可以響應(yīng)同步的 XHR 請(qǐng)求嗎?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 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 無(wú)法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請(qǐng)求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)

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

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

                              <tbody id='zZDus'></tbody>

                            <legend id='zZDus'><style id='zZDus'><dir id='zZDus'><q id='zZDus'></q></dir></style></legend>
                          • 主站蜘蛛池模板: 欧美日韩一区在线播放 | 日韩精品一区二区三区久久 | 日韩精品久久一区二区三区 | 视频一区二区在线观看 | 日韩欧美国产精品综合嫩v 一区中文字幕 | 91精品久久久久久综合五月天 | 欧美精品一区在线 | 中文字幕亚洲视频 | 精品一区二区三区四区在线 | 亚洲激精日韩激精欧美精品 | 久久免费精品 | 亚洲免费片 | 看毛片的网站 | 亚洲欧美日韩久久 | 中文字幕第十一页 | 国产精品夜夜夜一区二区三区尤 | 国产精品精品视频一区二区三区 | 国产 日韩 欧美 制服 另类 | 一区二区三区在线播放 | 一区二区三区中文字幕 | 亚洲国产小视频 | 久久久久国产一区二区三区四区 | 国产一区二区精品在线观看 | 91操操操| 亚洲精品v | 国产精品无码专区在线观看 | 亚洲免费视频网址 | 欧美视频二区 | 五月天国产 | 国产一区二区毛片 | 毛片网站在线观看视频 | 国产a视频 | 啪啪免费网| 亚洲人成人一区二区在线观看 | 亚洲一区二区三区视频 | 啪视频在线 | 日韩网站在线 | 国产精品一区二区免费 | 国产成人精品久久二区二区91 | 国产精品一区二区不卡 | 在线观看视频一区 |