Varnish does not send Content-Length header for php files

Status
Not open for further replies.

Shem

New Member
Messages
2
Reaction score
0
Points
1
With the new Varnish cache server, the Content-Length header is no longer sent at all for most files and prefers to default to chunked encoding. It also does some very strange behavior with php files as well as it randomly chooses between the latest version or defaulting to a cached version.

Is there a way to straight up disable Varnish or force it to send content-length headers for PHP? Setting Apache downgrade-1.0 and force-response-1.0 does force the Content-Length back, but breaks any page from loading (Which makes sense considering it doesn't receive anything from Varnish). It makes it very difficult to implement a REST API service if the client alternates between transfer types and does not send a content-length.
 
Status
Not open for further replies.
Top