Skip to content

Conversation

maennchen
Copy link

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #19390
License MIT
Doc PR

@@ -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();

@jameshalsall
Copy link
Contributor

Shouldn't this go into 2.7?

@maennchen
Copy link
Author

I've never conrtibuted to symfony core before and I'm not sure how the merging will go.
Here'd be a 2.7 Branch: https://github.com/maennchen/symfony/tree/hotfix/2.7_httpcache_ttl_fix

@maennchen
Copy link
Author

Replaced by #19397

@maennchen maennchen closed this Jul 20, 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
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.

3 participants