Re: Mod Layout 5.0 and Caching (304 Request)

Markus Bordihn <[email protected]> Sun, 08 Jul 2007 17:03:51 +0200
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hi all,
i try several things, but i cant solved this problem over the apache 
cache_mod or something like that.

But i found a workarround for this, but this workarround simple send a 
"no-cache" header and so there is no problem.

Example:
...
  <FilesMatch "\.(htm)$">
   Header set Cache-Control "max-age=0, private, no-store, no-cache, 
must-revalidate"
  </FilesMatch>

  AddOutputFilter LAYOUT .htm
  LayoutComment Off
  LayoutHeader /...template/head.htm
  LayoutFooter /..template/foot.htm
...

I found "no-cache" or something like that in the Sourcecode, but i think 
Apache2.2 works not the same way as Apache 2.0 with cach-control.
In Apache 2.0 I dont have this problem, this Problem only accure on 
Apache 2.2, I test this on several server and all the same result.

Mod_Layout 5.0 append the "LayoutFooter" also for 304 Response, this is 
bad, i hope someone can fixed this because im no C++ Coder.
I take a look in the SourceCode but i dont think i can make a BugFix for 
this.

For Person who are intrrest to solved this bug i can make a new testsite 
for this.


Greetings,
- Markus


Markus Bordihn schrieb:
> Hi All,
> i have something strange Problem with Mod_Layout 5.0 and Apache 2.2 
> under Debian, its seems that mod-layout also append the HTML Code when 
> there is a 304 Request :/
>
> Example:
> ...
> HTTP/1.0 304 Not Modified
> Date: Thu, 05 Jul 2007 20:13:18 GMT
> Server: Apache/2.2.0 (Fedora)
> Connection: close
> Vary: Accept-Encoding,User-Agent
>
>
>     <div id="container">
>       <div id="banner">&nbsp;</div>
>       <div id="seite_oben">&nbsp;</div>
>       <div id="seiten_body">       <div id="menue">
>         <ul class="menueliste">
> ...
>
> But this should be only:
> ...
> HTTP/1.0 304 Not Modified
> Date: Thu, 05 Jul 2007 20:13:18 GMT
> Server: Apache/2.2.0 (Fedora)
> Connection: close
> Vary: Accept-Encoding,User-Agent
> ...
>
> Its seems that Firefox have Problems with this, you can try this with 
> following pages:
>
> With Mod_Layout:
> http://animearchive.de/test.htm
>
> Without Mod_Layout:
> http://animearchive.de/test.html
>
> When you load the document in Firefox and reload several time one of the 
> Images appears or disappear, without mod_layout all works fine.
>
> Thanks for help or solutions to solved this, but i think this need a bugfix.
>
>
> Greetings,
> - Markus
> _______________________________________________
> Mod_layout mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_layout
>
>