Description
Short description of the issue
Normally every time the focus area for an image is changed in Page Edit a new variation is generated and visible on the front-end (browser cache may need to be cleared to see the changed variation).
This can be seen in these front-end screenshots before and after the focus area is changed (browser dev tools are open to disable caching).
<img src="<?= $page->image->size(200, 300)->url ?>" alt="">
But if a suffix is passed in as an image sizer option then the variation no longer updates after a focus change.
<img src="<?= $page->image->size(200, 300, ['suffix' => 'test'])->url ?>" alt="">
Expected behavior
Suffix has no impact on focus change generating new variation.
Optional: Suggestion for a possible fix
It would be great if the focus area was included (perhaps in an encoded form) as part of the variation file name so changing the focus area would reliably result in a new variation being loaded on the front-end regardless of suffix and would take care of cache-busting.
Setup/Environment
- ProcessWire version: 3.0.113