Does it give me any advantage if I set this header when generating normal HTML pages?
I see that some frameworks out there will set this header property and I was wondering why...
(Along with other headers, like
Does browser load the site faster or smoother?
ps: they do it like:
ob_start(); ... stuff here... $content = ob_get_contents(); $length = strlen($content); header('Content-Length: '.$length); echo $content;
I think its only because of the HTTP Spec says to do this in every case possible.
You can also look at Pauls Answer on the Question of Deaomon.
I think this will answer yours too.
Also you should use Content-Length if you want someone download a file with another header: e.g.