Content-Encoding
header is changed to gzip
, but the file itself was not compressed using gzip, a decoding error will occur.HTTP Header | Remarks | Example |
Content-Type | MIME information of the file | image/jpeg |
Cache-Control | File caching mechanism | no-cache;max-age=200 |
Content-Disposition | MIME type extension | attachment;filename="fname.ext" |
Content-Encoding | File encoding format | gzip |
Expires | Controls the expiration date of cache | Wed, 21 Oct 2015 07:28:00 GMT |
x-cos-meta-[custom suffix] | User-defined header | x-cos-meta-via: homepage |
GET /exampleobject HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Fri, 10 Apr 2020 09:35:16 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1586511316;1586518516&q-key-time=1586511316;1586518516&q-header-list=date;host&q-url-param-list=&q-signature=1bd1898e241fb978df336dc68aaef4c0acae****Connection: close
HTTP/1.1 200 OKContent-Type: text/plainContent-Disposition: attachment; filename*="UTF-8''exampleobject.txt"Access-Control-Allow-Origin: *Last-Modified: Fri, 10 Apr 2020 09:35:05 GMT
GET /exampleobject HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Fri, 10 Apr 2020 09:35:16 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1586511316;1586518516&q-key-time=1586511316;1586518516&q-header-list=date;host&q-url-param-list=&q-signature=1bd1898e241fb978df336dc68aaef4c0acae****Connection: close
HTTP/1.1 200 OKCache-Control: no-cacheContent-Type: image/jpegContent-Disposition: attachment; filename*="abc.txt"x-cos-meta-md5: 1234Access-Control-Allow-Origin: *Last-Modified: Fri, 10 Apr 2020 09:35:05 GMT
Was this page helpful?