Thursday, September 27, 2012

Re: iOS 6 Bug: Safari caches POST requests

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.

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
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment