8000 [2.7] [HttpFoundation] HttpCache refresh stale responses containing an ETag by maennchen · Pull Request #19397 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[2.7] [HttpFoundation] HttpCache refresh stale responses containing an ETag #19397

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
Jul 25, 2016
Merged

[2.7] [HttpFoundation] HttpCache refresh stale responses containing an ETag #19397

merged 1 commit into from
Jul 25, 2016

Conversation

maennchen
Copy link
@maennchen maennchen commented Jul 20, 2016
Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #19390, #6746
License MIT
Doc PR

This PR is the replacement of #19391, which points at the wrong branch.

@@ -600,6 +600,9 @@ protected function lock(Request $request, Response $entry)
*/
protected function store(Request $request, Response $response)
{
if (!$response->headers->has('Date')) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to explicitly call setDate to clarify what the code is doing even though one line containing the following would have the same effect:

$response->getDate();

@nicolas-grekas
Copy link
Member

👍

1 similar comment
@jakzal
Copy link
Contributor
jakzal commented Jul 25, 2016

👍

@nicolas-grekas
Copy link
Member

Thank you @maennchen.

@nicolas-grekas nicolas-grekas merged commit 96df6b9 into symfony:2.7 Jul 25, 2016
nicolas-grekas added a commit that referenced this pull request Jul 25, 2016
…ontaining an ETag (maennchen)

This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] [HttpFoundation] HttpCache refresh stale responses containing an ETag

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  |no
| BC breaks?    |no
| Deprecations? |no
| Tests pass?   | yes
| Fixed tickets | #19390, #6746
| License       | MIT
| Doc PR        |

This PR is the replacement of #19391, which points at the wrong branch.

Commits
-------

96df6b9 [HttpFoundation] HttpCache refresh stale responses containing an ETag
@maennchen maennchen deleted the hotfix/2.7_httpcache_ttl_fix branch July 25, 2016 16:48
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