Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #34438 [HttpFoundation] Use
Cache-Control: must-revalidate
only…
… if explicit lifetime has been given (mpdude) This PR was merged into the 3.4 branch. Discussion ---------- [HttpFoundation] Use `Cache-Control: must-revalidate` only if explicit lifetime has been given | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | This is really nit-picking: The conservative, safe default for `Cache-Control` is `private, no-cache` which means the response must not be served from cache unless it has been validated. If `Last-Modified` or `Expires` are present, we can relax `no-cache` to be `must-revalidate`, which means that _once the response has become stale_, it must be revalidated. An `ETag` alone does not give the response a lifetime, so IMO sticking with `no-cache` in this case would be more consistent. Commits ------- 1b1002b [HttpFoundation] Use `Cache-Control: must-revalidate` only if explicit lifetime has been given
- Loading branch information
Showing
4 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters