HTTP: max length of etag

后端 未结 2 2064
囚心锁ツ
囚心锁ツ 2021-02-18 19:30

Does the HTTP protocol specify a max length for the ETag?

2条回答
  •  伪装坚强ぢ
    2021-02-18 19:47

    No, an entity-tag is a quoted-string with an optional weak indicator prefix and can be of any length in theory.

    In practice, the length of a header field is limited, both by user agents and web servers. The maximum viable length of the entire header field should be somewhere at 8 KiB.

提交回复
热议问题