On Mar 2, 2012, at 2:26 AM, Martin Grigorov wrote: > On Fri, Mar 2, 2012 at 10:21 AM, Douglas Ferguson <the...@gmail.com> wrote: >> In 1.4 I did the following, what are the alternatives in 1.5? >> >> 1) AbstractRequestTargetUrlCodingStrategy to mount a path to 301 redirect > > I don't understand you
Does this work? mount(new MountMapper(path, new RedirectRequestHandler(destination, 301))); > >> 2) Overrode newRequestCycleProcessor so that I can set the no cache headers. > > https://cwiki.apache.org/WICKET/caching-in-wicket-15.html > >> >> private void setNoCacheHeader(RequestCycle requestCycle) { >> final WebResponse response = ((WebRequestCycle) >> requestCycle).getWebResponse(); >> // so firefox won't keep a cached version of the page which >> breaks the back button >> response.getHttpServletResponse().setHeader("Cache-Control", >> "no-cache, max-age=0, must-revalidate, no-store"); >> } >> >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org