We are serving private resources (images, files, ...) stored on an Azure Blob container.
Security is implemented using Shared Access Signatures, created for every request to the resource, e.g, two requests mean two different access tokens.
In general a secure URL is comprised of the file name and the token is passed as query string, e.g. https://myaccount.blob.core.windows.net/file.img?sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=F%6GRVAZ5Cdj2Pw4tgU7IlSTkWgn7bUkkAg8P6HESXwmf%4B
The response for the resources contains the Cache-Control header (Cache-Control:max-age=31536000?
Resources of type Image and Video are present in the website using a regular HTML's or elements.
Can resources served this way be cached by the browser?
Thanks everyone!
How can a HTML client cache images or videos served this way?
- Do you want the HTML client (say a browser) to cache the content or not? Or is your question is whether or not the content will be cached? Please edit your question and include this. Thanks. – Gaurav Mantri