Page MenuHomePhabricator

Emit HTTP Content-Length header with page views
Closed, ResolvedPublic

Description

Fearing http://meta.wikimedia.org/wiki/Full_file_list might be the
click of death for my modem, I proceeded to just do
$ HEAD on it, but as there is no Content-Length header, I dare not
proceed further. One probably must use a search engine to find out how
many bytes one should mentally prepare ones' self for.

Or fix apache or php or something.


Version: unspecified
Severity: normal

Details

Reference
bz8419

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:34 PM
bzimport set Reference to bz8419.
bzimport added a subscriber: Unknown Object (MLST).

In theory the output buffering should be able to add this when it does its thing.
Not sure what's the cleanest way to go about it. (eg, when the buffers are
canceled with ob_end_clean we should not end up with bogus headers... unless we
_are_ sending a 304, then maybe it should stay, as with the Content-Encoding for
gzip? or... ugh, have to look that one up)

robchur wrote:

Tim fixed this one up some time ago.