Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[2.8] [HttpFoundation] HttpCache refresh stale responses containing an ETag #19391

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

Closed
wants to merge 1 commit into from
Closed

[2.8] [HttpFoundation] HttpCache refresh stale responses containing an ETag #19391

wants to merge 1 commit into from

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