Help - Search - Members - Calendar
Full Version: Updating hosted images
HTMLHelp Forums > General Interest > Off Topic
SMMorse4
I work for a business that hosts images we use for our website and email campaigns on our domain. We've recently revamped most of our images across all platforms, and to make the new images appear when someone opens an older email, we replaced some images(mostly icons and logos) using the same file names. Unfortunately, we've had varying levels of success with this, with some emails displaying the new images while others still displaying the old versions of the images, and even new emails I've coded displaying the old images.

Does anyone know how to force all code that is using images from our repository to display the current versions of the images?
CharlesEF
If you are looking at a web page that shows the old image then try pressing Ctrl+F5 and see if the page reloads showing the new image. Maybe it's a cache problem. There may be a <meta> entry that can help with this but I don't know for sure.
Christian J
QUOTE(SMMorse4 @ Jun 27 2018, 08:22 PM) *

Does anyone know how to force all code that is using images from our repository to display the current versions of the images?

On web pages people sometimes add a query string to an embedded file to prevent caching, such as:

CODE
foo.jpg?bar=baz

Maybe that works in email clients too but I've never tested.

Another option might be to discourage caching with the image file's HTTP header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching

Of course there's no guarantee email clients will follow any of this (personally I block all third party images in emails).

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.