wodby / varnish

Varnish docker container image
https://wodby.com/stacks/varnish
MIT License
59 stars 29 forks source link

Drupal responsive image styles not generated when requested by anonymous users #34

Closed jacobsaw closed 2 years ago

jacobsaw commented 2 years ago

The url rewrite on line 18 of templates/includes/static.vcl.tmpl causes 404 image responses from Drupal when an anonymous user visits a page with responsive image styles.

This is due to the itok parameter being removed by line 18. The ImageStyleDownloadController processes the request in Drupal and passes back a 404 as there is no valid itok.

Steps to reproduce:

Commenting out line 18 of the include resolves this issue.

csandanov commented 2 years ago

Thank you, I agree, we should keep query params for cases like this, it's a minor optimization anyway