10000 [Request] [Documentation] clarify that isMethodCacheable() returns true only for GET & HEAD by tamc · Pull Request #29295 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Request] [Documentation] clarify that isMethodCacheable() returns true only for GET & HEAD #29295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

tamc
Copy link
Contributor
@tamc tamc commented Nov 23, 2018
Q A
Branch? 2.8
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets na
License MIT

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).

@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Nov 25, 2018
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).
@fabpot
Copy link
Member
fabpot commented Nov 26, 2018

Thank you @tamc.

@fabpot fabpot merged commit 9da9980 into symfony:2.8 Nov 26, 2018
fabpot added a commit that referenced this pull request Nov 26, 2018
…() returns true only for GET & HEAD (tamc)

This PR was merged into the 2.8 branch.

Discussion
----------

[Request] [Documentation] clarify that isMethodCacheable() returns true only for GET & HEAD

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | na
| License       | MIT

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).

Commits
-------

9da9980 Doc fix: clarify isMethodCacheable() returns true only for GET & HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0