- πΊπΈUnited States smustgrave
Wonder if this is still a valid task?
- Status changed to Closed: outdated
over 1 year ago 5:59pm 1 September 2023
Does this module work if allow_insecure_derivatives is disabled? Document the answer.
1. On a development environment (dev.example.com) enable stage_file_proxy module.
2. Set the origin to production (www.example.com)
3. Upload an image to production called "file1.jpg"
4. Setup an image style on production called "mystyle"
5. Generate an image style URL on the development environment, for example you can use drush:
drush php:cli
>>> $path = 'public://2020-12/file1.jpg';
=> "public://2020-12/file1.jpg"
>>> $url = \Drupal\image\Entity\ImageStyle::load('mystyle')->buildUrl($path);
=> "http://dev.example.com/sites/default/files/styles/mystyle/public/2020-12..."
6. Go to that URL on the development environment and notice it redirects to www.example.com and shows a 404 page
Other notable configurations:
Imagecache Root: enabled
Hotlink: enabled
Document whether the user of this module should expect a 404 for image styles that have not yet been generated. Also, confirm if this is because allow_insecure_derivatives is disabled.
Closed: outdated
2.0
Documentation
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Wonder if this is still a valid task?