For which methods does RFC 9110 define caching semantics?
GET, HEAD, POST, and PUT
GET and HEAD only
GET, HEAD, and POST✓Правильный ответ
all safe methods, that is GET, HEAD, OPTIONS, and TRACE
Объяснение
Caching semantics are defined for GET, HEAD, and POST, even though the spec notes that most cache implementations support only GET and HEAD. OPTIONS and TRACE responses are explicitly not cacheable, so safety alone does not imply cacheability.