So this will cause all files to be downloaded over and over again. Is there a way to do this fix just for IOS devices. Jeffrey Roe,
On Tue, Oct 2, 2012 at 5:42 PM, Nicolas Hoby <[email protected]> wrote: > Works perfect, thank you! > > Just for completion, to install the filter add the following to your > Web.xml: > > <filter> > <filter-name>HeaderFilter</filter-name> > <filter-class>server.services.HeaderFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>HeaderFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > On Sep 27, 11:40 am, Christian Kuetbach <[email protected]> wrote: >> Implement a Header-Filter: >> >> public class HeaderFilter implements Filter { >> >> public void destroy() { >> } >> >> public void doFilter(ServletRequest req, ServletResponse res, >> FilterChain filterChain) >> throws IOException, ServletException { >> >> HttpServletResponse response = (HttpServletResponse) res; >> response.addHeader("Cache-Control", "no-cache"); >> filterChain.doFilter(req, res); >> } >> >> public void init(FilterConfig arg0) throws ServletException { >> } >> >> } >> >> If you set this filter to filter all your reqests to your dispatch-servlet, >> no results should be cached. >> >> Regards, >> Christian Kuetbach > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
