Added information in regards to DFS and static files#150
Added information in regards to DFS and static files#150mateuszbieniek wants to merge 2 commits into1.0from
Conversation
|
@ezsystems/documentation-team for review. |
There was a problem hiding this comment.
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.0If the project is set to use DFS to serve static files, the Response's
Varyheader will always be set toCookie, Authorizationdue to the missingX-User-Hashheader inside Request coming from Varnish.