Howdi,

   I have now got this working. I had set a static last-modified header so
of course OXF was not reloading it.

My fix was to generate a dynamic Last-modified header in Apache to get
around the fact that Subversion doesn't supply one yet.

# Kludge to generate the current datetime in an env variable

RewriteEngine       on
RewriteRule ^(.*)$ $1---Mon\,\ %{TIME_DAY}\ Jan\ %{TIME_YEAR}\
%{TIME_HOUR}:%{TIME_MIN}:%{TIME_SEC}\ GMT
RewriteRule ^(.*)---(.*)$ $1 [env=now:$2]
Header add Last-Modified %{now}e

Cheers,
Damon.

----- Original Message ----- 
From: "Damon Rand" <[EMAIL PROTECTED]>
To: "OXF Users" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 2:29 AM
Subject: Re: urlresourcemanager


> Howdi,
>     Good work on OXF 2.1. I am looking forward to using the LDAP processor
> and the new portlet features look very interesting.
>
> >  > Is it possible there is something later in the web controller
> >  > processor that is still caching too aggressively? Even a
> >  > ctrl-refresh on the page after an hour doesn't display a change in
> >  > model.xml that is visible if I request model.xml directly from the
> >  > same link with a browser. My pipeline is just this.
> >
> > Try a shift-reload in Netscape or Mozilla (this is not implemented in
> > IE AFAIK). This will cause the browser to issue a unconditional GET on
> > the server. This will allow you to determine at least if the browser
> > is caching, or if OXF is.
>
> >From my first quick tests it seems that the UrlResourceManager bug is
still
> in 2.1 though. On the first request OXF issues HEAD/GET pairs to the
backend
> web server.
>
> 192.168.1.1 - - [18/Sep/2003:01:43:27 +0100] "HEAD
> trunk/config/controller.xml HTTP/1.1" 200 -
> 192.168.1.1 - - [18/Sep/2003:01:43:27 +0100] "GET
> trunk/config/controller.xml HTTP/1.1" 200 478
> 192.168.1.1 - - [18/Sep/2003:01:43:28 +0100] "HEAD
> trunk/pipelines/homepage/format-homepage.xsl HTTP/1.1" 200 -
> 192.168.1.1 - - [18/Sep/2003:01:43:28 +0100] "GET
> trunk/pipelines/homepage/format-homepage.xsl HTTP/1.1" 200 3435
> 192.168.1.1 - - [18/Sep/2003:01:43:29 +0100] "HEAD
> trunk/pipelines/homepage/model.xml HTTP/1.1" 200 -
> 192.168.1.1 - - [18/Sep/2003:01:43:29 +0100] "GET
> trunk/pipelines/homepage/model.xml HTTP/1.1" 200 3591
>
> On successive requests it only issues HEAD's though.
>
> 192.168.1.1 - - [18/Sep/2003:01:43:50 +0100] "HEAD
> trunk/config/controller.xml HTTP/1.1" 200 -
> 192.168.1.1 - - [18/Sep/2003:01:43:51 +0100] "HEAD
> trunk/pipelines/homepage/format-homepage.xsl HTTP/1.1" 200 -
> 192.168.1.1 - - [18/Sep/2003:01:43:51 +0100] "HEAD
> trunk/pipelines/homepage/model.xml HTTP/1.1" 200 -
>
> Even when I try different combinations of these http headers to try and
> force the issue it doesn't help.
>
> Expires: Tue, 11 Jul 2000 18:23:51 GMT
> Pragma: no-cache
> Cache-Control: no-cache, must-revalidate
> Last-Modified: Tue, 11 Jul 2014 18:23:51 GMT
>
> Any ideas?
>
> Cheers,
> Damon.
>
> _______________________________________________
> oxf-users mailing list
> [EMAIL PROTECTED]
> http://mail.orbeon.com/mailman/listinfo/oxf-users
>

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to