Skip to content

[HttpFoundation] Fix caching of session-enabled pages #24691

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
Oct 26, 2017

Conversation

nicolas-grekas
Copy link
Member

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

@@ -101,6 +102,7 @@ public function __construct(array $options = array(), $handler = null, MetadataB
{
$options += array(
'cache_limiter' => 'private_no_expire',
'cache_expire' => 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't you then use cache_limiter => nocache directly. The only difference is that it also sets no-store, meaning no conditional requests.

Copy link
Member Author

Choose a reason for hiding this comment

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

No-store is too aggressive to me, conditional requests are fine, aren't they?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should be yeah.

@Tobion
Copy link
Contributor

Tobion commented Oct 26, 2017

Thank you @nicolas-grekas.

@Tobion Tobion merged commit 572e02c into symfony:3.4 Oct 26, 2017
Tobion added a commit that referenced this pull request Oct 26, 2017
…olas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[HttpFoundation] Fix caching of session-enabled pages

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

Commits
-------

572e02c [HttpFoundation] Fix caching of session-enabled pages
@nicolas-grekas nicolas-grekas deleted the fix-cache-expire branch October 26, 2017 13:59
This was referenced Oct 30, 2017
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