Image is hosted in Amazon S3. We are generating signed URL to display image in browser/Android WebView. Signed URLs are generated from backend server using boto3. On client site, this signed URL is made available using a API.
The image is cached in Android WebView. If the image is updated, the new image is not visible to users.
We use the
Cache-Control header with
no-store. Amazon S3 provides option to set custom headers. Below is the syntax for setting custom header using boto3.