SSI + content-length headers

SSI + content-length headers

am 24.09.2009 23:15:51 von Rajwinder-office Singh

--00163623aa8d1663d40474595620
Content-Type: text/plain; charset=ISO-8859-1

I have a situation :

1. I have to keep SSI enabled on all *.html pages.
2. SSI removes content-length + Last-modified headers from *.html
3. I have to keep these two headers for it to be cached by my CDN provider.
4. No fun of using XbiHack cause every other html is having ssi.

Does it make sense to calculate these two headers and then insert both
headers in some kind of output filter ?

Or is there any way to disable this behaviour that apache do ?

Thanks
Singh

--00163623aa8d1663d40474595620
Content-Type: text/html; charset=ISO-8859-1

I have a situation :

1. I have to keep SSI enabled on all *.html pages.
2. SSI removes content-length + Last-modified headers from *.html
3. I have to keep these two headers for it to be cached by my CDN provider.

4. No fun of using XbiHack cause every other html is having ssi.

Does it make sense to calculate these two headers and then insert both headers in some kind of output filter ?

Or is there any way to disable this behaviour that apache do ?


Thanks
Singh



--00163623aa8d1663d40474595620--

Re: SSI + content-length headers

am 25.09.2009 03:34:43 von Rajwinder-office Singh

--001636ed6a6bd5b1d104745cf338
Content-Type: text/plain; charset=ISO-8859-1

>
> I have a situation :
>
> 1. I have to keep SSI enabled on all *.html pages.
> 2. SSI removes content-length + Last-modified headers from *.html
> 3. I have to keep these two headers for it to be cached by my CDN provider.
> 4. No fun of using XbiHack cause every other html is having ssi.
>
> Does it make sense to calculate these two headers and then insert both
> headers in some kind of output filter ?
>
> Or is there any way to disable this behaviour that apache do ?
>
> Thanks
> Singh
>
>

--001636ed6a6bd5b1d104745cf338
Content-Type: text/html; charset=ISO-8859-1

I have a situation :

1. I have to keep SSI enabled on all *.html pages.

2. SSI removes content-length + Last-modified headers from *.html
3. I have to keep these two headers for it to be cached by my CDN provider.

4. No fun of using XbiHack cause every other html is having ssi.

Does it make sense to calculate these two headers and then insert both headers in some kind of output filter ?

Or is there any way to disable this behaviour that apache do ?



Thanks
Singh





--001636ed6a6bd5b1d104745cf338--

Re: Re: SSI + content-length headers

am 25.09.2009 16:41:55 von Nick Kew

Rajwinder-office Singh wrote:
> I have a situation :
>
> 1. I have to keep SSI enabled on all *.html pages.
> 2. SSI removes content-length + Last-modified headers from *.html
> 3. I have to keep these two headers for it to be cached by my CDN
> provider.

Content-length shouldn't affect cacheability. If you're sure it does,
you might consider a bug report to whoever is responsible.

> 4. No fun of using XbiHack cause every other html is having ssi.

What's wrong with xbithack? Just scope it where you want it.

> Does it make sense to calculate these two headers and then insert
> both headers in some kind of output filter ?

Yes, you'd need to compute content-length in an output filter.
And it would need to buffer your output, which makes for a huge
performance hit if you're serving big documents.

--
Nick Kew

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: SSI + content-length headers

am 28.09.2009 07:59:52 von Rajwinder-office Singh

--0016368e2b7c98826e04749d01f3
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Sep 25, 2009 at 10:41 AM, Nick Kew wrote:

> Rajwinder-office Singh wrote:
>
>> I have a situation :
>>
>> 1. I have to keep SSI enabled on all *.html pages.
>> 2. SSI removes content-length + Last-modified headers from *.html
>> 3. I have to keep these two headers for it to be cached by my CDN
>> provider.
>>
>
> Content-length shouldn't affect cacheability. If you're sure it does,
> you might consider a bug report to whoever is responsible.
>
> 4. No fun of using XbiHack cause every other html is having ssi.
>>
>
> What's wrong with xbithack? Just scope it where you want it.
>


> -- Nothing wrong with xbitHack but it will not make any diff in my case as
> adding inlcude output filter to all *.html or making every *.html an
> executble.
>
> Does it make sense to calculate these two headers and then insert
>> both headers in some kind of output filter ?
>>
>
> Yes, you'd need to compute content-length in an output filter.
> And it would need to buffer your output, which makes for a huge
> performance hit if you're serving big documents.
>
> -- I only need to do it for *.html so should not be a issue ( i guess ) . I
searched around for such a output filter but cant find any "ready to use"
type. any pointers on any thread or if any body has already written some
thing like that ?

> --
> Nick Kew
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--0016368e2b7c98826e04749d01f3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Fri, Sep 25, 2009 at 10:41 AM, Nick K=
ew <nick@webthing=
..com
>
wrote:
rder-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding=
-left: 1ex;">
Rajwinder-office Singh wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
=A0 =A0I have a situation :



=A0 =A01. I have to keep SSI enabled on all *.html pages.

=A0 =A02. SSI removes content-length + Last-modified headers from *.html r>
=A0 =A03. I have to keep these two headers for it to be cached by my CDN r>
=A0 =A0provider.




Content-length shouldn't affect cacheability. =A0If you're sure it =
does,

you might consider a bug report to whoever is responsible.
>



204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
=A0 =A04. No fun of using XbiHack cause every other html is having ssi. >



What's wrong with xbithack? =A0Just scope it where you want it.
ss=3D"im">
=A0
" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0=
..8ex; padding-left: 1ex;">
-- Nothing wrong with xbitHack but it will not make any d=
iff in my case as adding inlcude output filter to all *.html or making ever=
y *.html an executble.



204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
=A0 =A0Does it make sense to calculate these two headers and then insert r>
=A0 =A0both headers in some kind of output filter ?




Yes, you'd need to compute content-length in an output filter.

And it would need to buffer your output, which makes for a huge

performance hit if you're serving big documents.


-- I only need to do it for *.html so should not be a=
issue ( i guess ) . I searched around for such a output filter but cant fi=
nd any "ready to use" type. any pointers on any thread or if any =
body has already written some thing like that ?

(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--

Nick Kew



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

=A0" =A0 from the digest: httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.o=
rg


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org






--0016368e2b7c98826e04749d01f3--

Re: Re: SSI + content-length headers

am 05.10.2009 00:53:32 von Rajwinder-office Singh

--001636ed77e8d56fd9047523dd70
Content-Type: text/plain; charset=ISO-8859-1

I did some work on this and able to insert content-length header.

Now the issue is with last-modified header only.

I cannot use xbithack full.

I dont have to calculate exact last modified header as my CDN provider is
happy with any Dummy last-modifed header having value older then current
time. What i need to do is to insert last-modifed header with value 1 week
older then current time.

Any directions ?




On Mon, Sep 28, 2009 at 1:59 AM, Rajwinder-office Singh <
rajwinder.makkar.office@gmail.com> wrote:

>
>
> On Fri, Sep 25, 2009 at 10:41 AM, Nick Kew wrote:
>
>> Rajwinder-office Singh wrote:
>>
>>> I have a situation :
>>>
>>> 1. I have to keep SSI enabled on all *.html pages.
>>> 2. SSI removes content-length + Last-modified headers from *.html
>>> 3. I have to keep these two headers for it to be cached by my CDN
>>> provider.
>>>
>>
>> Content-length shouldn't affect cacheability. If you're sure it does,
>> you might consider a bug report to whoever is responsible.
>>
>> 4. No fun of using XbiHack cause every other html is having ssi.
>>>
>>
>> What's wrong with xbithack? Just scope it where you want it.
>>
>
>
>> -- Nothing wrong with xbitHack but it will not make any diff in my case as
>> adding inlcude output filter to all *.html or making every *.html an
>> executble.
>>
>> Does it make sense to calculate these two headers and then insert
>>> both headers in some kind of output filter ?
>>>
>>
>> Yes, you'd need to compute content-length in an output filter.
>> And it would need to buffer your output, which makes for a huge
>> performance hit if you're serving big documents.
>>
>> -- I only need to do it for *.html so should not be a issue ( i guess ) .
> I searched around for such a output filter but cant find any "ready to use"
> type. any pointers on any thread or if any body has already written some
> thing like that ?
>
>> --
>> Nick Kew
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

--001636ed77e8d56fd9047523dd70
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I did some work on this and able to insert content-length header.

No=
w the issue is with last-modified header only.

I cannot use xbithac=
k full.

I dont have to calculate exact last modified header as my CD=
N provider is happy with any Dummy last-modifed header having value older t=
hen current time. What i need to do is to insert last-modifed header with v=
alue 1 week older then current time.


Any directions ?




On Mon, =
Sep 28, 2009 at 1:59 AM, Rajwinder-office Singh < ef=3D"mailto:rajwinder.makkar.office@gmail.com">rajwinder.ma kkar.office@gma=
il.com
>
wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

s=3D"gmail_quote">
On Fri, Sep 25, 2009 at 10:41 AM, Nick =
Kew < lank">nick@webthing.com> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Rajwinder-office Singh wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
=A0 =A0I have a situation :



=A0 =A01. I have to keep SSI enabled on all *.html pages.

=A0 =A02. SSI removes content-length + Last-modified headers from *.html r>
=A0 =A03. I have to keep these two headers for it to be cached by my CDN r>
=A0 =A0provider.




Content-length shouldn't affect cacheability. =A0If you're sure it =
does,

you might consider a bug report to whoever is responsible.




204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
=A0 =A04. No fun of using XbiHack cause every other html is having ssi. >



What's wrong with xbithack? =A0Just scope it where you want it.
iv>
=A0
=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p=
adding-left: 1ex;">

-- Nothing wrong with xbitHack but it will not make any diff in my cas=
e as adding inlcude output filter to all *.html or making every *.html an e=
xecutble.




204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
=A0 =A0Does it make sense to calculate these two headers and then insert r>
=A0 =A0both headers in some kind of output filter ?




Yes, you'd need to compute content-length in an output filter.

And it would need to buffer your output, which makes for a huge

performance hit if you're serving big documents.


-- I only need to do it for *.html so should no=
t be a issue ( i guess ) . I searched around for such a output filter but c=
ant find any "ready to use" type. any pointers on any thread or i=
f any body has already written some thing like that ?


eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:=
1ex;">
--

Nick Kew



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

=A0" =A0 from the digest: httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.o=
rg


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org








--001636ed77e8d56fd9047523dd70--