php - Setting Content-Length Header for Magento -
i'm battling site performance issues , 1 of recommendations disable chunked encoding.
our site pages aren't big plenty need , there's much overhead. i'm not familiar http headers, i've learned "transfer-encoding: chunked
" header gets set automatically if not have "content-length
" header.
does know how go setting "content-length
" header in magento? need work pages pages cached (we utilize lightspeed total page caching extension).
i can't speak lightspeed total page caching extension (you need contact back upwards issue), magento has single entry point via index.php
, can hack , wrap output in buffer:
ob_start(); # ... run magento here $buffer = ob_get_clean();
you set content-length header:
header(sprintf("content-length: %s", strlen($buffer)));
then sending out buffer:
echo $buffer;
this might not work caching extension or if other extensions breaking output buffering chain.
php http magento http-headers magento-1.5
No comments:
Post a Comment