You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MD5s can be stored in the 'ETag' field of S3 objects. The
field doesn't store the MD5 in two cases: objects uploaded
with Multipart Upload and objects encrypted with SSE-C or
SSE-KMS. In those cases, we'll just return an empty string.
so perhaps this is a feature request—is there a way to set the etag field for larger objects?
The text was updated successfully, but these errors were encountered:
Amazon's docs say that, for multipart uploads, the ETag "will not necessarily be an MD5 hash of the object data." They don't actually say what it will be, just that it isn't the md5.
So, we don't have a confident way to know that the mp3s have not changed.
One option is to just look at file size and last-modified time for files that don't have usable ETags. This seems a little dangerous because the file contents could change without changing the size and we wouldn't know to push the update. Maybe we could disable it by default, but let users enable it through config if they understand the risk.
Thanks for the additional details, Spencer, makes sense—I can certainly give something like you suggest a try if the redeployment of the mp3s really becomes a hassle.
spenczar
changed the title
cache comparison for mp3 files not working (re-uploads all mp3s each deploy)
Large files get re-uploaded on every deploy
Jul 12, 2016
When deploying a lektor site that hosts a podcast each mp3 file is re-uploaded each time:
I'm guessing this is due to, as the code states,
so perhaps this is a feature request—is there a way to set the etag field for larger objects?
The text was updated successfully, but these errors were encountered: