Skip to content

Test user without credentials #180

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
Apr 6, 2015
Merged

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Mar 14, 2015

I wanted to start with a failing test for the automatic hash and then realized that we don't need it at all.

The hash request is only ever executed when there is a cookie / auth header: https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/tests/Functional/Fixtures/varnish-3/user_context.vcl#L16

The Vary information also includes the variant of not having the header in question.

I think we can close #132 and think whether we should remove the corresponding code in the SymfonyCache and just have no context header. https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/src/SymfonyCache/UserContextSubscriber.php#L165 - the backend certainly should not use the hash, but only Vary on it.

ddeboer added a commit that referenced this pull request Apr 6, 2015
@ddeboer ddeboer merged commit 6cbcd83 into master Apr 6, 2015
@ddeboer ddeboer deleted the test-user-context-anonymous branch April 6, 2015 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propose user hash shortcut for anonymous users
2 participants