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