Firstly, thanks for the excellent work on this set of Docker images and related configuration! Great stuff.
Anyway, I'd like to submit a patch to fix an issue that happens when using Varnish with Drupal private files (system/files)
Because preset.vcl is included after static.vcl in the default template, then the vcl_recv will strip the cookies from the private file request, e.g https://example.com/system/files/sample.csv
sub vcl_recv {
if (req.url ~ "(?i)\.({{ $static_files }})(\?.*)?$") {
unset req.http.Cookie;
The cookies are required to authenticate the private file download request for Drupal.
This patch simply adjusts the ordering, to allow the preset.vcl to override static.vcl in vcl_recv for the system/files path, to return the pass there
Please check sometime and apply if suitable, thanks again.
Firstly, thanks for the excellent work on this set of Docker images and related configuration! Great stuff.
Anyway, I'd like to submit a patch to fix an issue that happens when using Varnish with Drupal private files (system/files)
Because
preset.vcl
is included afterstatic.vcl
in the default template, then thevcl_recv
will strip the cookies from the private file request, e.g https://example.com/system/files/sample.csvThe cookies are required to authenticate the private file download request for Drupal.
This patch simply adjusts the ordering, to allow the
preset.vcl
to overridestatic.vcl
invcl_recv
for the system/files path, to return thepass
therePlease check sometime and apply if suitable, thanks again.