Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
image.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Feb 2015 at 20:43 UTC
Updated:
13 Dec 2021 at 15:12 UTC
Jump to comment: Most recent
Comments
Comment #1
elijah lynnJust ran into this issue because we are using Upload Replace module that will rename the new uploaded file to be the same name. The itok is generated with image_style_path_token() and will always generate the same token and the code in image_style_deliver() will always check the itok with the same algorithm for incoming image derivative generation requests.
So the logical option of having the itok param change is not that realistic and it would appear that the only option if we are using the same file name is to use Cache-control headers and pass a no-store along to the browser for those images.
Or maybe add a second query param onto the image to bust the cache...
Comment #2
elijah lynnRelated http://drupal.stackexchange.com/questions/147146/image-cache-only-clears...
Comment #4
plachMarking this as a duplicate of #2884203: Invalidate client-side cache when image style is modified. as that one is more active.