Remove Image caching


#1

Hey, i’ve got a list with thumbnails which are previews of posts. When I edit a post its image the image doesn’t get cached in the post its detail view, but it does in the list with previews.
Is there any way to turn this off so that when an image get’s edited the next time i’ll load this list it will display the correct image, not an image that’s deleted?


#2

That is called browser caching.

You have to add e.g. a timestamp in the image urls.
http://domain.tld/image.jpg?TIMESTAMP

Your backend has to store creationdate of the image and if you update the image the creationdate changes to a new timestamp -> so the browser gets a new url when a new image was uploaded.

Greetz.