You could write the filter to only affect POSTs
Or, you could configure the filter mapping to only apply the filter to your 
Servlet(s).

Jamie.

On Friday, 2 November 2012 14:23:44 UTC-4, Jeffrey Roe wrote:
>
> 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]<javascript:>> 
> 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]<javascript:>. 
>
> > To unsubscribe from this group, send email to 
> [email protected] <javascript:>. 
> > 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Gi-1f3SaepUJ.
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.

Reply via email to