Many browsers will cache the image file on the local host. For instance when new profile picture is uploaded, browser might display the old version. Same goes with other content images as well.
This patch adds timestamp as a parameter to each urls created. It is similar as giving the $bypass_browser_cache parameter value 'true', but more efficient. Creation time does not change unless the file has been changed.
| Comment | File | Size | Author |
|---|---|---|---|
| disable-browser-caching-when-file-updated.patch | 784 bytes | tomimikola |
Comments
Comment #1
frankcarey commented+1 for this. @drewish, you were worried about the stat() calls, but at least there is some caching. Perhaps this would work well as an optional functionality? http://php.net/manual/en/function.filemtime.php
Comment #2
chuckbar77 commentedsubscribing
Comment #3
YK85 commentedsubscribing - is this another solution for #689470: Timestamp not appending to image url. theme_imagefield_imagecache() not firing.?
Comment #4
fizk commentedMarking as ImageCache 3.x Todo.
Comment #5
fizk commentedDuplicate of #689470: Timestamp not appending to image url. theme_imagefield_imagecache() not firing..
Comment #6
fizk commentedRemoving tags.