BristolSTA/uobtheatre-web

Production Image Update

Closed this issue · 1 comments

atoff commented

When you have a production with an existing image (e.g. feature image) and you change it (e.g. by dragging over a new one, or from file browser), because of how filenames are encoded, the old image is not cache busted (i.e. it shows the old image)

atoff commented

Not sure how to handle this - if we encode a unique string into the filename, then we could result with lots of images that are not used in S3. However, if we just add a query string to the end of the URL, the browser will not cache/load from cache but this uses more data.

Presumably, this is a problem until the browser clears it's image cache, which should be when the browsing session's ends. This might be acceptable.