From: Johannes Dahlström Date: Tue, 25 Sep 2012 11:25:04 +0000 (+0000) Subject: Ensure the browser does not cache UIDL responses (#9732) X-Git-Tag: 7.0.0.beta6~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a930bbb16eeb7c8663c136b441ff44024c615447;p=vaadin-framework.git Ensure the browser does not cache UIDL responses (#9732) svn changeset:24575/svn branch:6.8 Conflicts: src/com/vaadin/terminal/gwt/server/CommunicationManager.java Change-Id: I64a1a8300ab1d96e7a9b22c5ed53398cf0dd3f74 --- diff --git a/server/src/com/vaadin/server/VaadinServlet.java b/server/src/com/vaadin/server/VaadinServlet.java index 9d1d79d8b1..0620035274 100644 --- a/server/src/com/vaadin/server/VaadinServlet.java +++ b/server/src/com/vaadin/server/VaadinServlet.java @@ -288,6 +288,11 @@ public class VaadinServlet extends HttpServlet implements Constants { // Handles AJAX UIDL requests communicationManager.handleUidlRequest(request, response, servletWrapper, uI); + + // Ensure that the browser does not cache UIDL responses. + // iOS 6 Safari requires this (#9732) + response.setHeader("Cache-Control", "no-cache"); + return; } else if (requestType == RequestType.BROWSER_DETAILS) { // Browser details - not related to a specific UI