Doc fix: clarify isMethodCacheable() returns true only for GET & HEAD

The current documentation points to https://tools.ietf.org/html/rfc7231#section-4.2.3.

The spec says: "this specification defines GET, HEAD, and POST as cacheable, although the overwhelming majority of cache implementations only support GET and HEAD.".

This fix to the documentation clarifies that Symfony follows majority (excluding POST) rather than the spec (including POST).
This commit is contained in:
Tom Counsell 2018-11-23 15:43:18 +00:00 committed by Nicolas Grekas
parent e4a7fd8eed
commit 9da998005b

View File

@ -1475,7 +1475,7 @@ class Request
*
* @see https://tools.ietf.org/html/rfc7231#section-4.2.3
*
* @return bool
* @return bool True for GET and HEAD, false otherwise
*/
public function isMethodCacheable()
{