I have a little app which is accessing files on S3. I'm dealing with 3 different file types, and some are gzipped and some are not.
I've got a bit of code which is looking at the file type (unfortunately no extension, so I have to try decoding for the different type) but adding in that some files are zipped and some aren't is creating more overhead.
I'm hoping there is a way to request the content-encoding from s3, but haven't found anything in documentation.
If that isn't possible, is there a synchronous way of checking if the file's content-encoding? I don't see anything in the s3 object which shows the encoding, the only properties on S3 being returned are Content-Type, ETag, Body, Metadata, ContentLength and AcceptRanges.