public class BasePage extends WebPage
{
protected void setHeaders(WebResponse response)
        {
                response.setHeader("Pragma", "no-cache");
                response.setHeader("Cache-Control", "no-cache, max-age=0,
must-revalidate, no-store");
        }
}

Maurice

On Fri, Feb 15, 2008 at 5:39 PM, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
> Just override the setHeaders method. I don't know what to say more.
>
>  Martijn
>
>
>  On 2/15/08, pnerkar <[EMAIL PROTECTED]> wrote:
>  >
>  >  Hi Martijn,
>  >
>  >  I tried but not able to find setHeader method for Page.
>  >  Can you please explain this bit more ??
>  >
>  >  Regards,
>  >
>  >  Pankaj.
>  >
>  >
>  >
>  >  Martijn Dashorst wrote:
>  >  >
>  >  > Override the setHeaders method of your page.
>  >  > Martijn
>  >  >
>  >  > On 1/23/08, Sébastien Piller <[EMAIL PROTECTED]> wrote:
>  >  >>
>  >  >> Hello guys,
>  >  >>
>  >  >> I would like to prevent a page to be stored on the client side. How can
>  >  >> I set the "Cache-Control" headers?
>  >  >>
>  >  >> Thanks!
>  >  >>
>  >  >> ---------------------------------------------------------------------
>  >  >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  >> For additional commands, e-mail: [EMAIL PROTECTED]
>  >  >>
>  >  >>
>  >  >
>  >  >
>  >  > --
>  >  > Buy Wicket in Action: http://manning.com/dashorst
>  >  > Apache Wicket 1.3.0 is released
>  >  > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
>  >  >
>  >  >
>  >
>  >
>  > --
>  >  View this message in context: 
> http://www.nabble.com/How-to-set-no-cache-header-tp15044463p15502951.html
>  >  Sent from the Wicket - User mailing list archive at Nabble.com.
>  >
>  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>  --
>  Buy Wicket in Action: http://manning.com/dashorst
>  Apache Wicket 1.3.1 is released
>  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to