Re: Last_Modified and ETags

Harald Falkenberg <[email protected]> Mon, 12 Feb 2007 10:57:22 +0100 (CET)
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hallo,

I hit the same problem and posted the question a long time ago to this
list (see archive). Unfortunately no helping answer. The module is somehow
useful but unfortunatly no progress in further developements, although the
module is used quite often.

In my case I decided to uncommend from
	utility.c
this line
	ap_set_last_modified(r);
Then the header information is set and takes in my setup the value of the
original page.

Perhaps this helps you a little bit.

regards
	Harald

> Hello,
>
> I'm using mod_layout 3.2.1 on Apache 1.3 in some pages which i give some
> informations for CSS and HTML compliance. But in this pages cache's
> headers information are missing (etag or last-changed) causing squid
> not to work on those pages.
>
> I  took a look at the sources and found  in ``utility.c'' these lines
> disabled:
>
> ----
>
> LAYOUT_EXPORT(void) print_layout_headers(request_rec *r, layout_conf
> *cfg) {
>          ap_rflush(r);
>          r->content_type = "text/html";
>          ap_update_mtime(r, r->finfo.st_mtime);
> /*      ap_set_last_modified(r);*/
> /*      ap_set_etag(r); */
>
> ----
>
> Does request_rec *r came from the original page? I mean, will
> apt_set_last_modified(r) return consistent value form the original
> page? Is there any good reason for these comments? I'm planning to
> use mod_layout with LastModified and ETag on and see if it works for me.
>
>
> Thanks in advance.
>
> --
> Rudá Sumé Tente de Moura <[email protected]>
> Terra Networks Brasil +55 (51) 3284 4299
>
>
>
> _______________________________________________
> Mod_layout mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_layout
>