Last_Modified and ETags
Rudá Moura <[email protected]> Sat, 10 Feb 2007 17:26:53 -0200
| Newsgroups | gmane.comp.apache.mod-layout |
|---|---|
| Message-ID | <[email protected]> |
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