U
U
Urbansamurai2020-01-09 21:11:01
Amazon Web Services
Urbansamurai, 2020-01-09 21:11:01

How to overcome caching when replacing a file in S3 with another one with the same name?

How can you let the browser know that the file has been changed and you need to download a new one if the name remains the same? I really don't want to introduce versioning and create unnecessary logic for deleting old files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-01-09
@inoise

S3 takes care of this on its own and manages the headers too, so that's not a problem. If you want higher control, then you can wrap S3 through CloudFront

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question