HTTP プロトコルは ETag の最大長を指定していますか?
6567 次
2 に答える
20
No.
14.19 ETag
The ETag response-header field provides the current value of the entity tag for the requested variant. The headers used with entity tags are described in sections 14.24, 14.26 and 14.44. The entity tag MAY be used for comparison with other entities from the same resource (see section 13.3.3).
ETag = "ETag" ":" entity-tag
Examples:
ETag: "xyzzy" ETag: W/"xyzzy" ETag: ""
于 2009-11-16T08:28:05.470 に答える
13
いいえ、エンティティ タグは、オプションの弱いインジケーター プレフィックスを含む引用符付き文字列であり、理論上は任意の長さにすることができます。
実際には、ヘッダー フィールドの長さは、ユーザー エージェントとWeb サーバーの両方によって制限されています。ヘッダー フィールド全体の実行可能な最大長は、8 KiB 程度にする必要があります。
于 2012-03-24T08:15:59.370 に答える