Open jcsp opened 9 months ago
In #6123, periodic download of heatmaps is added for secondary mode locations.
While downloading the heatmap is not bandwidth intensive, we can avoid transferring any body at all if the heatmap has not changed: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html (If-None-Match or If-Modified-Since)
If-None-Match
If-Modified-Since
Currently, the S3Bucket type doesn't have support for setting such headers during a GET.
The download code now stores the etag (last_etag) and checks it before downloading body: all that remains is to augment the remote storage client's GET path with the ability to set the conditional download header.
last_etag
In #6123, periodic download of heatmaps is added for secondary mode locations.
While downloading the heatmap is not bandwidth intensive, we can avoid transferring any body at all if the heatmap has not changed: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html (
If-None-Match
orIf-Modified-Since
)Currently, the S3Bucket type doesn't have support for setting such headers during a GET.