Tuesday, November 6, 2012

Re: iOS 6 Bug: Safari caches POST requests

Hello.

We just override the method onAfterResponseSerialized from RemoteServiceServlet in the RPC services implementation and this fixes this issue:

    @Override
    protected void onAfterResponseSerialized(String serializedResponse) {
        HttpServletResponse response = getThreadLocalResponse();
        response.setDateHeader("Expires", 0L);  // always expired
        response.setHeader("Cache-Control", "no-cache");
    }

Regards,
Oscar



El domingo, 23 de septiembre de 2012 10:10:35 UTC+2, Rui Oliveira escribió:
Hi,

Whats the best away to solve this issue? I have hundreds of RPC and I'm looking for a global way to change the header to no-cache.

Sincerely

Rui 

--
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/-/fpOWNVQ0q3YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment