Wicket provides the following: Override configureResponse in WebPage is one, where this is the default:
/** * @see wicket.Page#configureResponse() */ protected void configureResponse() { super.configureResponse(); final WebResponse response = getWebRequestCycle().getWebResponse(); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache, max-age=0, must-revalidate"); // no-store } And WebResource (for images etc) has setHeaders(WebResponse response) and the cacheable property. Eelco On 8/4/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote: > Hi, > > I like to have browser be automatically instructed not to cache anything > when in Wicket development mode. (I can't count the times I did not > remember to clear the cache after making some modification in a CSS and > couldt not find why the changes were not visible). > > May be it's there and I couldn't find it. I eventually it by detecting > development mode programatically and inserting <meta > http-equiv="pragma" content="no-cache"/> into the head element. > > May be there is/should be a simpler way to achieve this ? > > Pierre-Yves > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user