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