Skip to content

Does glide support Cache-Control and Content-Encoding headers ? #4620

Open
@skyberk

Description

@skyberk

Hi ,

My current cdn server returns image data without cache header keys. But some cdn servers return these keys and values at header response. Does it affect Glide caching behavior if cdn server sends these parameters at response header with image ? I have not found any resource in Glide documentation yet.

Cache-Control: max-age=7776000
Content-Encoding: gzip

Glide version :

4.10.0

My cdn server headers at response,

Response Header

Connection: keep-alive
Content-Type: image/jpeg
Date: Mon, 23 Aug 2021 12:32:35 GMT
Server: MNCDN-5137
Strict-Transport-Security: max-age=15768000
Transfer-Encoding: chunked
Vary: Accept-Encoding; Accept-Encoding
X-Android-Received-Millis: 1629721953925
X-Android-Response-Source: NETWORK 200
X-Android-Selected-Protocol: http/1.1
X-Android-Sent-Millis: 1629721953685
X-Cache-Status: Edge : HIT,
x-edge-location: TR-833
X-MNRequest-Id: 989b9bea0c258110ee42155e357c7b0c
X-MServer: 4203

Another cdn server headers at response,

HTTP/1.1 200 OK
Date: Mon, 23 Aug 2021 11:52:17 GMT
Content-Type: image/png
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
last-modified: Mon, 26 Jul 2021 11:52:23 GMT
x-amz-request-id: tx00000000000005a53e0c2-0060fea213-1198de2d-default
strict-transport-security: max-age=3153600; includeSubDomains
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
vary: Accept-Encoding,Origin
x-srv-ip: 10.250.134.202
X-MServer: 4213
Expires: Sun, 21 Nov 2021 11:52:17 GMT
Cache-Control: max-age=7776000
Content-Encoding: gzip
Server: MNCDN-5132
x-edge-location: TR-833
X-MNRequest-Id: 5762adb7acaf8a5d44aedef640c42568
Access-Control-Allow-Origin: *
X-Cache-Status: Edge : HIT,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions