php - How to disable Content-Length on LAMP -


i need disable sending of content-length make other different settings in headers. how perform on lamp configs?

at all, need make this

cache-control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 connection:keep-alive content-type:text/html date:tue, 21 jul 2015 05:58:49 gmt expires:thu, 19 nov 1981 08:52:00 gmt keep-alive:timeout=15, max=97 pragma:no-cache server:apache transfer-encoding:chunked 

but have this

cache-control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 connection:keep-alive content-encoding:gzip content-language:ru-ru content-length:2640 content-type:text/html; charset=utf-8 date:tue, 21 jul 2015 05:58:44 gmt expires:thu, 19 nov 1981 08:52:00 gmt keep-alive:timeout=5, max=95 pragma:no-cache server:apache/2.2.22 (debian) vary:accept-encoding x-powered-by:php/5.4.41-0+deb7u1 

assuming wish accomplish in php (i'm guessing headers using php), need tell httpd encoding chunked:

<?php   header("transfer-encoding: chunked");   flush(); ?> 

this has been solved before on so: how make php generate chunked response

while may php, advise not static files, kind of ruin whole point of protocol.


Comments