-
Notifications
You must be signed in to change notification settings - Fork 61
Removed test code #244
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
Removed test code #244
Conversation
the tests fail. why do you want to remove this? any idea how to keep the tests happy? |
When I copy the contents of the file to my varnish configuration, varnish starts to complain on that line. |
okay. lets think about it again if there is a more elegant solution. i
won't get to it before my holidays unfortunately, but this is the
not-yet-released 2.0 version so there should be no harm done.
|
I suggest we move
|
sounds like a plan
|
d15db53
to
ef497f0
Compare
Thank you both for input. |
i think the doc should mention that you can change the lookup url by including your own vcl file |
apart from that 👍 |
Yes, It should be mentioned in the documentation. I'll add something in a minute. I would like to share how I use these VCLs. I use them as reference configuration. I copied everything to one big VCL and made some minor adjustments. I keep them outside of the git repo. My point is: If I'm going to change the URL, I'm more likely to actually edit |
@@ -202,7 +202,10 @@ User Context | |||
|
|||
Feature: :doc:`user context hashing <user-context>` | |||
|
|||
Subroutines are provided in ``resources/config/varnish-[version]/fos_user_context.vcl``. | |||
Subroutines are provided in ``resources/config/varnish-[version]/fos_user_context.vcl`` and ``resources/config/varnish-[version]/fos_user_context_url.vcl``. The default lookup URL is `/_fos_user_context_hash`. You | |||
may change it by implementing your own ``user_context_hash_url`` subroutine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets rephrase this to say that fos_user_context.vcl needs the user_context_hash_url subroutine that sets the url to the request lookup url. The default URL is /_fos_user_context_hash and you can simply include ..._url.vcl in your configuration to provide this. If you need a different URL, include a custom file.
sorry, missed this update. i proposed an improvement on the documentation, otherwise i think this is ready to merge and indeed more clean than the previous solution. re: your usage: our idea is that for version 2.0 you can use the vcl as-is and just add your own things. this would make maintenance easier. but of course people are free to follow other approaches. everything in one file seems hard on readability and updateability to me though - and performance wise should not matter as the configuration is compiled at startup anyways. |
oh, and could you squash the commits please? |
Sorry for not making a comment after updating last time. I've updated the PR now. What do you think? |
thanks a lot! the test failure is with hhvm, and noted in #245 and has nothing to do with your changes. |
Thank you for reviewing and merging this. |
No description provided.