Wicket by default does not add anything to the header.

class MyBasePage extends WebPage
{
        protected void configureResponse()
        {

configureResponse() is the place where I'd put it. Assuming your
application (as probably most) has its own BasePage (to accommodate
coporate standards, check access to the page, apps page layout, etc.),
than I'd put it there.

Juergen


On Sat, 12 Mar 2005 02:27:25 -0500, Gili <[EMAIL PROTECTED]> wrote:
> On Fri, 11 Mar 2005 22:59:20 -0800 (PST), [EMAIL PROTECTED] wrote:
> 
> >I do not want the browser to cache any pages at all for may authenticated
> >application. I always want the browser to hit the server even if does a
> >back button action. Does wicket by default set the http header related to
> >caching? I searched through the source and I did not see any response
> >header calls.
> >
> >Where should I set the response header to set the "Control-Cache",
> >"Expires" etc? Should I do it the WebPage.checkAccess method?
> 
>         I did:
> 
>     WebResponse response = (WebResponse) getResponse();
>     HttpServletResponse httpResponse =
> response.getHttpServletResponse();
>     httpResponse.setHeader("Cache-Control", "must-revalidate");
>     httpResponse.addDateHeader("Last-Modified",
> java.util.Calendar.getInstance().getTime().getTime());
> 
> Gili
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to