Skip to content

also clean away the NO_AUTO_CACHE_CONTROL_HEADER if we have no session #28960

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 24, 2018

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Oct 23, 2018

Q A
Branch? 4.1 (feature added in this branch)
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This header is not supposed to ever be exposed to clients of the application, but a hack to transfer information within the symfony application. This bugfix makes it so that we also remove the header when no session is started and thus no decision has to be taken whether to overwrite the caching instructions or not.

@nicolas-grekas
Copy link
Member

Nice. Would it possible to cover this by a test case?

@dbu
Copy link
Contributor Author

dbu commented Oct 23, 2018

good point with the tests. did need to move getting the request up... i think its ok to expand on the existing test and make it do a bit more, rather than create a separate test. okay like this?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

OK for me, thanks!

@fabpot
Copy link
Member

fabpot commented Oct 24, 2018

Thank you @dbu.

@fabpot fabpot merged commit 28d9f0c into symfony:4.1 Oct 24, 2018
fabpot added a commit that referenced this pull request Oct 24, 2018
…e no session (dbu)

This PR was merged into the 4.1 branch.

Discussion
----------

also clean away the NO_AUTO_CACHE_CONTROL_HEADER if we have no session

| Q             | A
| ------------- | ---
| Branch?       | 4.1 (feature added in this branch)
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This header is not supposed to ever be exposed to clients of the application, but a hack to transfer information within the symfony application. This bugfix makes it so that we also remove the header when no session is started and thus no decision has to be taken whether to overwrite the caching instructions or not.

Commits
-------

28d9f0c also clean away the NO_AUTO_CACHE_CONTROL_HEADER if we have no session
@fabpot fabpot mentioned this pull request Nov 3, 2018
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.

5 participants