HTTP Header | Description | Example |
Content-Type | MIME information of the file | image/jpeg |
Cache-Control | File caching mechanism | no-cache: Indicates that cache cannot be used directly, but whether the object has been updated must be verified first with the server. If the object has been updated, it indicates that the cache is expired, and the object must be re-downloaded from the server; if the object has not been updated, the cache is not expired, and the local cache will be used. max-age=200: Indicates the relative expiration time of the cached content, in seconds. |
Content-Disposition | Extension of MIME protocol | inline: Directly previews the content of the file. attachment: Downloads to the specified path in the browser with the original filename. attachment; filename="FileName": You should download it to the specified path in the browser with a custom filename. FileName defines the name of the file after download, for example, example.jpg. If the attachment name is in Chinese, it needs to be URL encoded, for example, attachment; filename* = UTF-8' '%E4%B8%AD%E6%96%87.txt |
Content-Encoding | File encoding format | gzip Note: If the Content-Encoding in the header has been modified as gzip, but the file has not been compressed with gzip, a decoding error will occur. |
Expires | Expiration date of the cache | Wed, 21 Oct 2015 07:28:00 GMT |
x-cos-meta-[custom suffix] | User-defined content | x-cos-meta-via: homepage Note: Header names support only hyphens (-), digits, and English letters (a-z). Uppercase letters in English will be converted to lowercase letters; other characters, including underscores (_), are not supported. |
GET /exampleobject.txt 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/plainAccess-Control-Allow-Origin: *Last-Modified: Fri, 10 Apr 2020 09:35:05 GMT
Parameter | Value |
Content-Type | image/jpeg |
Cache-Control | no-cache |
Content-Disposition | attachment; filename* = UTF-8' '%E4%B8%AD%E6%96%87.jpeg |
x-cos-meta-md5 | 1234 |
GET /exampleobject.txt 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* = UTF-8' '%E4%B8%AD%E6%96%87.jpegx-cos-meta-md5: 1234Access-Control-Allow-Origin: *Last-Modified: Fri, 10 Apr 2020 09:35:05 GMT
Apakah halaman ini membantu?