1"use strict";(self.webpackChunkyolo=self.webpackChunkyolo||[]).push([["4644"],{58756(e,s,r){r.r(s),r.d(s,{metadata:()=>t,default:()=>h,frontMatter:()=>d,contentTitle:()=>n,toc:()=>c,assets:()=>a});var t=JSON.parse('{"id":"notes/develop/web/http-headers-classification","title":"HTTP headers \u5206\u7C7B","description":"HTTP headers \u6839\u636E\u7528\u9014\u5206\u7C7B\u3002","source":"@site/docs/notes/develop/web/http-headers-classification.mdx","sourceDirName":"notes/develop/web","slug":"/notes/develop/web/http-headers-classification","permalink":"/docs/notes/develop/web/http-headers-classification","draft":false,"unlisted":false,"tags":[{"inline":false,"label":"HTTP","permalink":"/docs/tags/http"},{"inline":false,"label":"\u5907\u5FD8\u6E05\u5355","permalink":"/docs/tags/cheat-sheet"}],"version":"current","lastUpdatedAt":1750741867000,"frontMatter":{"description":"HTTP headers \u6839\u636E\u7528\u9014\u5206\u7C7B\u3002","tags":["http","cheat-sheet"]},"sidebar":"docsSidebar","previous":{"title":"HTTP ETag \u7684\u5F3A\u5F31\u533A\u522B","permalink":"/docs/notes/develop/web/http-etag-strong-vs-weak"},"next":{"title":"HTTP/3 \u6765\u4E86","permalink":"/docs/notes/develop/web/http3-is-coming"}}'),o=r(74848),l=r(28453);let d={description:"HTTP headers \u6839\u636E\u7528\u9014\u5206\u7C7B\u3002",tags:["http","cheat-sheet"]},n="HTTP headers \u5206\u7C7B",a={},c=[];function i(e){let s={a:"a",h1:"h1",header:"header",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,l.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.header,{children:(0,o.jsx)(s.h1,{id:"http-headers-\u5206\u7C7B",children:"HTTP headers \u5206\u7C7B"})}),"\n",(0,o.jsxs)(s.table,{children:[(0,o.jsx)(s.thead,{children:(0,o.jsxs)(s.tr,{children:[(0,o.jsx)(s.th,{children:"Family"}),(0,o.jsx)(s.th,{children:"Request"}),(0,o.jsx)(s.th,{children:"Response"})]})}),(0,o.jsxs)(s.tbody,{children:[(0,o.jsxs)(s.tr,{children:[(0,o.jsx)(s.td,{children:"Caching"}),(0,o.jsxs)(s.td,{children:[(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control",children:"Cache-Control"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma",children:"Pragma"})," (HTTP/1.0)"]}),(0,o.jsxs)(s.td,{children:[(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control",children:"Cache-Control"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires",children:"Expires"})," (HTTP/1.0)"]})]}),(0,o.jsxs)(s.tr,{children:[(0,o.jsx)(s.td,{children:"Caching (conditional)"}),(0,o.jsxs)(s.td,{children:[(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match",children:"If-None-Match"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since",children:"If-Modified-Since"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since",children:"If-Unmodified-Since"})]}),(0,o.jsxs)(s.td,{children:[(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag",children:"ETag"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified",children:"Last-Modified"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary",children:"Vary"})]})]}),(0,o.jsxs)(s.tr,{children:[(0,o.jsx)(s.td,{children:"Referrer"}),(0,o.jsxs)(s.td,{children:[(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer",children:"Referer"})," (\u7956\u4F20\u62FC\u5199\u9519\u8BEF)"]}),(0,o.jsx)(s.td,{children:(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy",children:"Referrer-Policy"})})]}),(0,o.jsxs)(s.tr,{children:[(0,o.jsx)(s.td,{children:"CORS"}),(0,o.jsxs)(s.td,{children:[(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#origin",children:"Origin"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-request-method",children:"Access-Control-Request-Method"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-request-headers",children:"Access-Control-Request-Headers"})]}),(0,o.jsxs)(s.td,{children:[(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-allow-origin",children:"Access-Control-Allow-Origin"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-expose-headers",children:"Access-Control-Expose-Headers"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-max-age",children:"Access-Control-Max-Age"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-allow-credentials",children:"Access-Control-Allow-Credentials"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-allow-methods",children:"Access-Control-Allow-Methods"}),(0,o.jsx)("br",{}),(0,o.jsx)(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-allow-headers",children:"Access-Control-Allow-Headers"})]})]})]})]})]})}function h(e={}){let{wrapper:s}={...(0,l.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(i,{...e})}):i(e)}},28453(e,s,r){r.d(s,{R:()=>d,x:()=>n});var t=r(96540);let o={},l=t.createContext(o);function d(e){let s=t.useContext(l);return t.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function n(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:d(e.components),t.createElement(l.Provider,{value:s},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.