On Tuesday 19 February 2002 16:09, Matt Sergeant wrote:
> On Tue, 19 Feb 2002, Andrew Parker wrote:
> > I noticed that the cache was saying that the XSP had not changed, and so
> > the script was not rerun. Although this is correct, in a sense, it
> > should run the script if data is being posted. So I did this to XSP.pm:
> >
> > --- XSP.pm.old Tue Feb 19 11:54:59 2002
> > +++ XSP.pm.new Tue Feb 19 11:58:37 2002
> > @@ -81,6 +81,7 @@
> > if (exists($cache->{$key})
> > && !$xml->has_changed($cache->{$key}{mtime})
> > && defined &{"${package}::handler"}
> > + && !($r->method() eq 'POST') #want to rerun on a
> > post )
> > {
>
> That's incorrect - it recompiles your XSP page on every POST request.
> Something fishier is going on I'm afraid.
Well, obviously you would ideally not want to RECOMPILE your XSP page on
POST, but according to the HTTP spec, in theory, POST results should never be
cached. That says nothing about stylesheets though, I see no reason why it
should be a bad idea to cache a stylesheet no matter what the method is.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]