Skip to content

always prefer to content-length rather than chunking for cacheable request #1651

@esmq2092

Description

@esmq2092

when set proxy.config.http.chunking_enabled to 3, according documentation, which means generate a chunked response if the client request is HTTP/1.1 and the origin server has previously returned HTTP/1.1.


for the very first request, ats will either return chunking response or add Connection: closed header ( to help client to get the correct entity size)...

when the object had cached, ats can caculate the size of cached object and set the content-lenth properly for the following request, when content-length is caculated by ats, ats will no return chunk encoding any more....

is that a intentional behavior or a bug?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions