cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Csaba Nagy <csaba.n...@12snap.com>
Subject RE: [C2] Don't cache. Please!
Date Mon, 04 Jun 2001 13:29:02 GMT
Try to include the following HTTP headers in your xsp page (I have no idea
how you can do that, I'm new to C2):

Pragma:no-cache
Cache-Control:no-cache

These headers will tell any caching mechanism not to cache the page.
If anybody knows how to set HTTP headers in xsp pages, I also would be
interested to find out.

-----Original Message-----
From: Morrison, John [mailto:John.Morrison@uk.experian.com]
Sent: Monday, June 04, 2001 3:11 PM
To: 'cocoon-dev@xml.apache.org'
Subject: RE: [C2] Don't cache. Please!


Oh.  I tried something along the lines of:

<xsp:page
  language="java"
  xmlns:xsp="http://apache.org/xsp">

  <sample>
    <xsp:logic>
      String area = request.getParameter("area");
      if(area == null)
        area = "";
      else
        area = area + "/";
    <area><xsp:expr>area</xsp:expr></area>
    </xsp:logic>
  </sample>
</xsp:page>

And it appeared to be caching.  I'll return and investigate more later.  Is
there an easy way to get at request parameters in the sitemap?

J.

> -----Original Message-----
> From: giacomo [mailto:giacomo@apache.org]
> Sent: 04 June 2001 2:02 pm
> To: 'cocoon-dev@xml.apache.org'
> Subject: Re: [C2] Don't cache. Please!
> 
> 
> On Mon, 4 Jun 2001, Morrison, John wrote:
> 
> > Hi all,
> >
> > How do I *stop* C2 from caching a (for example) xsp page?
> 
> XSP pages are by default not cached.
> 
> Giacomo
> 
> >
> > Thanks,
> >
> > J.
> >
> >
> > 
> ==============================================================
> =========
> > Information in this email and any attachments are 
> confidential, and may
> > not be copied or used by anyone other than the addressee, 
> nor disclosed
> > to any third party without our permission.  There is no intention to
> > create any legally binding contract or other commitment 
> through the use
> > of this email.
> >
> > Experian Limited (registration number 653331).
> > Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message