I have one image style on my site that I need to add a cache breaker to.
Ideally I just want to add . '#' . time() to the end of the src URL.
For instance everywhere the large style is shown the src url is currently something like:
/sites/default/files/styles/large/public/image.jpg?itok=kdkdFf With cachebreaker:
/sites/default/files/styles/large/public/image.jpg?itok=kdkdFf#1398670388 How do I go about doing this? hook_node_alter?
More info:
I set up a test image editor at http://blakedesign.co.nz/editor/ via Chrome uploading an image and then editing it works fine the modified image shows up in the preview.
On Firefox or IE it actually does work but the old unedited image gets redisplayed from memory.
This can be circumvented if a unique cachebreaker is appended to the source url every time the image is viewed.
itok=kdkdFfis regenerated per request already, isn't it? What more you need? If you delete cached images,itokwill work as cache breaker. If you will not, breaking user's cache will not help anyway. So, why do you think there is any benefit in adding#1398670388?