I am trying to figure out if I can force browsers to cache images with signed URLs.
I want to create a new signed URL for each request (the same image, but with an updated signature), but the browser will not reload it every time.
So, assuming the headers associated with the cache are set correctly and the whole URL is the same except for the query string, is there any way to make the browser cache it?
The urls look something like this:
http://example.s3.amazonaws.com/magic.jpg?WSAccessKeyId=stuff&Signature=stuff&Expires=1276297463 http://example.s3.amazonaws.com/magic.jpg?WSAccessKeyId=stuff&Signature=stuff&Expires=1276297500
We plan to install e-tags as md5sum, since this will at least display this same image at this point?
My other option is to track when the last one gave out the URL, and then start issuing new ones before the old ones expire, but I would prefer not to deal with the session information.
Brendan long
source share