Re: content-length not being set

Joe Walnes <[email protected]> Mon, 30 May 2005 12:25:30 +0100
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <[email protected]>
SiteMesh intentionally supresses the content-length header generated
from the undecorated pages as the size of the page will be different
by the time the decorator is applied.

If you want to explicitly use a content-length header, you'd have to
get your decorator to figure it out and write it. Although this would
require the entire decorated page to be buffered somewhere before it's
written out, otherwise you'd have no way of knowing.

Hope that clears things up.

-Joe

On 5/5/05, Barrie Selack <[email protected]> wrote:
> In doing some testing for caching and http headers, I noticed my content-
> length is not being set using sitemesh (2.2.1) if I disable sitemesh..
> everything is fine. I used the same tools and found www.opensymphony.com
> was also not setting content-length headers.
> 
> Is this a problem? or something that is to be expected?
> 
> Barrie Selack
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]