-
Notifications
You must be signed in to change notification settings - Fork 23
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
Added information in regards to DFS and static files #150
base: 1.0
Are you sure you want to change the base?
Conversation
@ezsystems/documentation-team for review. |
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.
The proposal to remove the given if
will likely fix the issue yes ( not tested on my part though).
However, we go for this change, the fix needs to be added to Fastly's vcl too..
It must also be documented better ( in the docs for setting of dfs cluster )
Also, in regards to Fastly, we (or actually Platform.sh) don't want clients to run custom vcls, that means that we need to provide two vcls (for instance fastly/ez_main.vcl
and fastly/ez_main_dfs.vcl
)
However, it would also be possible to autodetect from the vcl if backend is runnning in dfs or not:
- Create a controller that returns whatever the dfs handler is enabled or not
- in vcl, call that controller in the same way already do with invalidate token and check with that response if we should do the
return (hash)
or not
As a last thought, would it be so bad to simply remove that return (hash)
to everyone? yes, there will then always be a restart for fetching X-User-Context-Hash
, also when fetching assets. But it would anyway be cached and overhead should be minimal.
Hi @vidarl - Please take a second look - I've probably updated the text when you were writing your review.
👍 |
I didn't see that last commit while doing the review, correct. For instance, a .pdf file would never be located in |
@vidarl @mateuszbieniek this one looks like a "low hanging fruit" mergabe without QA as it applies to code comment only. What is the status here? I see that this applies to eZ Platform 2.5, which is now past EOM, so it would require a rebase. |
1.0
If the project is set to use DFS to serve static files, the Response's
Vary
header will always be set toCookie, Authorization
due to the missingX-User-Hash
header inside Request coming from Varnish.