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:
parent
e4a7fd8eed
commit
9da998005b
@ -1475,7 +1475,7 @@ class Request
|
|||||||
*
|
*
|
||||||
* @see https://tools.ietf.org/html/rfc7231#section-4.2.3
|
* @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()
|
public function isMethodCacheable()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user