Skip to main content

Web FAQ

URL 安全字符 / URL Safe characters#

  • unreserved / 未保留字符 / 安全字符
    • [0-9a-zA-Z-._~]
  • 保留
    • ampersand ("&")
    • dollar ("$")
    • plus sign ("+")
    • comma (",")
    • forward slash ("/")
    • colon (":")
    • semi-colon (";")
    • equals ("=")
    • question mark ("?")
    • 'At' symbol ("@")
    • pound ("#").
  • 一般认为不安全
    • space (" ")
    • less than and greater than (<>)
    • open and close brackets ([])
    • open and close braces ({})
    • pipe (|)
    • backslash (\)
    • caret (^)
    • percent (%)
  • 参考

HTTP Headers#

sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"sec-ch-ua-mobile: ?0Sec-Fetch-Dest: emptySec-Fetch-Mode: corsSec-Fetch-Site: same-site

cache#

请求

Cache-Control: max-age=<seconds>Cache-Control: max-stale[=<seconds>]Cache-Control: min-fresh=<seconds>Cache-Control: no-cacheCache-Control: no-storeCache-Control: no-transformCache-Control: only-if-cached

响应

Cache-Control: must-revalidateCache-Control: no-cacheCache-Control: no-storeCache-Control: no-transformCache-Control: publicCache-Control: privateCache-Control: proxy-revalidateCache-Control: max-age=<seconds>Cache-Control: s-maxage=<seconds>
Cache-Control: immutableCache-Control: stale-while-revalidate=<seconds>Cache-Control: stale-if-error=<seconds>

websocket#

Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bitsSec-WebSocket-Key: R9DINzhe/9zYRFOjZEd41A==Sec-WebSocket-Protocol: sipSec-WebSocket-Version: 13Upgrade: websocket