Reputation: 777
Use case: we have client that can download pictures from the S3 storage using pre-signed URL and periodically refresh them. We don't need to download the picture again if it has not changed.
Problem: Can we use ETag and if-none-match
header for solve our problem if pictures URL can change(e.g. after pre-signed URL expiration)?
Upvotes: 1
Views: 3714
Reputation: 777
We succesfully tested using Etag with S3 Pre-signed URL.
You can send Etag with if-none-match
header in Pre-signed URL and receive 304 not modified
if content is identical. It will works regardless of URL, e.g.
Upvotes: 0