亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides Access control CORS Authentication Browser detection using the user agent Caching Caching FAQ Compression Conditional requests Connection management in HTTP 1.x Content negotiation Content negotiation: List of default Accept values Cookies CSP Messages Overview Protocol upgrade mechanism Proxy servers and tunneling Proxy servers and tunneling: Proxy Auto-Configuration (PAC) file Public Key Pinning Range requests Redirections Resources and specifications Resources and URIs Response codes Server-Side Access Control Session Guides: Basics Basics of HTTP Choosing between www and non-www URLs Data URIs Evolution of HTTP Identifying resources on the Web MIME Types MIME types: Complete list of MIME types CSP Content-Security-Policy Content-Security-Policy-Report-Only CSP: base-uri CSP: block-all-mixed-content CSP: child-src CSP: connect-src CSP: default-src CSP: font-src CSP: form-action CSP: frame-ancestors CSP: frame-src CSP: img-src CSP: manifest-src CSP: media-src CSP: object-src CSP: plugin-types CSP: referrer CSP: report-uri CSP: require-sri-for CSP: sandbox CSP: script-src CSP: style-src CSP: upgrade-insecure-requests CSP: worker-src Headers Accept Accept-Charset Accept-Encoding Accept-Language Accept-Ranges Access-Control-Allow-Credentials Access-Control-Allow-Headers Access-Control-Allow-Methods Access-Control-Allow-Origin Access-Control-Expose-Headers Access-Control-Max-Age Access-Control-Request-Headers Access-Control-Request-Method Age Allow Authorization Cache-Control Connection Content-Disposition Content-Encoding Content-Language Content-Length Content-Location Content-Range Content-Type Cookie Cookie2 Date DNT ETag Expect Expires Forwarded From Headers Host If-Match If-Modified-Since If-None-Match If-Range If-Unmodified-Since Keep-Alive Large-Allocation Last-Modified Location Origin Pragma Proxy-Authenticate Proxy-Authorization Public-Key-Pins Public-Key-Pins-Report-Only Range Referer Referrer-Policy Retry-After Server Set-Cookie Set-Cookie2 SourceMap Strict-Transport-Security TE Tk Trailer Transfer-Encoding Upgrade-Insecure-Requests User-Agent User-Agent: Firefox Vary Via Warning WWW-Authenticate X-Content-Type-Options X-DNS-Prefetch-Control X-Forwarded-For X-Forwarded-Host X-Forwarded-Proto X-Frame-Options X-XSS-Protection Methods CONNECT DELETE GET HEAD Methods OPTIONS PATCH POST PUT Status 100 Continue 101 Switching Protocols 200 OK 201 Created 202 Accepted 203 Non-Authoritative Information 204 No Content 205 Reset Content 206 Partial Content 300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 304 Not Modified 307 Temporary Redirect 308 Permanent Redirect 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Timeout 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Payload Too Large 414 URI Too Long 415 Unsupported Media Type 416 Range Not Satisfiable 417 Expectation Failed 426 Upgrade Required 428 Precondition Required 429 Too Many Requests 431 Request Header Fields Too Large 451 Unavailable For Legal Reasons 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout 505 HTTP Version Not Supported 511 Network Authentication Required Status
characters

非標(biāo)準(zhǔn)Large-Allocation響應(yīng)頭告訴瀏覽器正在加載的頁面將要執(zhí)行大量分配。它目前只在 Firefox 中實(shí)現(xiàn),但對(duì)每個(gè)瀏覽器都是無害的。

WebAssembly 或 asm.js 應(yīng)用程序可以使用大量連續(xù)的已分配內(nèi)存塊。例如,對(duì)于復(fù)雜的游戲,這些分配可能非常大,有時(shí)高達(dá)1GB。的Large-Allocation講述,在待加載的頁面的 web 內(nèi)容將要要執(zhí)行大的連續(xù)存儲(chǔ)器分配的瀏覽器和瀏覽器可以通過啟動(dòng)一個(gè)專門處理為要被加載的文件到此接頭反應(yīng),如下例。

Header type

Response header

Forbidden header name

no

句法

Large-Allocation: 0Large-Allocation: <megabytes>

指令

0是一個(gè)特殊值,它表示分配的大小是不確定的。<megabytes>要執(zhí)行的分配的預(yù)期大小,以兆字節(jié)為單位。

例子

Large-Allocation: 0Large-Allocation: 500

排除錯(cuò)誤

Large-Allocation不正確使用時(shí)頭引發(fā)警告或錯(cuò)誤消息。您將在 Web控制臺(tái)中 遇到它們。

這個(gè)頁面由于頭文件而被加載到一個(gè)新的進(jìn)程中。這個(gè)Large-Allocation消息意味著瀏覽器看到了Large-Allocation頭文件,并且能夠?qū)㈨撁嬷匦录虞d到一個(gè)新的進(jìn)程中,該進(jìn)程應(yīng)該有更多可用的連續(xù)內(nèi)存。Large-Allocation由于加載由非GET請(qǐng)求觸發(fā)。當(dāng)POST使用請(qǐng)求來加載文檔時(shí),該加載當(dāng)前不能被重定向到新的進(jìn)程中。Large-Allocation使用非GET HTTP方法加載包含標(biāo)題的文檔時(shí),會(huì)顯示此錯(cuò)誤。這可能是由于文檔通過表單提交加載引起的。例如,由于Large-Allocation存在通過框架層次結(jié)構(gòu)引用此瀏覽上下文的窗口,因此標(biāo)頭被忽略window.opener。

錯(cuò)誤表示文檔未加載到用戶打開或未打開打開的選項(xiàng)卡或窗口的頂層。它可能發(fā)生在這些情況下:

  • 帶有Large-Allocation標(biāo)題的文檔被加載到一個(gè)<iframe>。Firefox 目前無法將 iframe 移動(dòng)到新進(jìn)程中,因此文檔必須在當(dāng)前進(jìn)程中加載。

  • 帶有Large-Allocation標(biāo)題的文檔被加載到打開的窗口中window.open(),<a target="_blank">或者其他類似的方法沒有被設(shè)置rel="noopener"或者"noopener"被設(shè)置。這些窗口必須保持與它們的開啟者相同的進(jìn)程,因?yàn)樗鼈兛梢赃M(jìn)行通信,這意味著我們不能允許它們切換進(jìn)程。

  • 帶有該文檔的文檔Large-Allocation header已經(jīng)打開了另一個(gè)窗口window.open(),<a target="_blank">或者其他類似的方法沒有設(shè)置rel="noopener""noopener"功能。這是出于與上述相同的原因,即他們可以溝通,因此我們不能允許他們切換流程。

Large-Allocation由于沒有被加載出 process.Firefox 的已經(jīng)移動(dòng)到文檔的頁眉被忽略多進(jìn)程架構(gòu),并且該架構(gòu)以支持所需要的Large-Allocation標(biāo)頭。一些傳統(tǒng)的 Addons 可以防止 Firefox 使用這種新的,更快的多進(jìn)程體系結(jié)構(gòu)。如果您安裝了其中一個(gè) Addons,那么我們將繼續(xù)使用舊的單進(jìn)程架構(gòu)來兼容,并且無法處理頭文件。Large-Allocation由于Large-Allocation頭文件的原因,此頁面將在新進(jìn)程中加載,但是Large-Allocation在非 -Win32 平臺(tái).Firefox 目前只支持Large-Allocation頭部在我們的32位 Windows 版本中,因?yàn)閮?nèi)存碎片在64位版本中不是問題。如果您運(yùn)行的是 Firefox 的非 win32 版本,則會(huì)顯示此錯(cuò)誤。該檢查可以通過 “dom.largeAllocation” 來禁用。

在 config 中的 forceEnable 布爾設(shè)置 preferece。

產(chǎn)品規(guī)格

不是任何當(dāng)前規(guī)格的一部分。在這個(gè)文件中可以找到這個(gè)頭文件背后的想法的解釋者。

瀏覽器兼容性

Feature

Chrome

Firefox

Edge

Internet Explorer

Opera

Safari

Basic Support

(No)

53

(No)

(No)

(No)

(No)

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(No)

(No)

(No)

(No)

(No)

(No)

(No)

Previous article: Next article: