The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Updating hosted images, Making images that have been replaced using the same name update
SMMorse4
post Jun 27 2018, 01:22 PM
Post #1





Group: Members
Posts: 1
Joined: 27-June 18
Member No.: 26,665



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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Jun 27 2018, 06:18 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 27 2018, 07:37 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,628
Joined: 10-August 06
Member No.: 7



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).

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th March 2024 - 04:14 AM