From a930bbb16eeb7c8663c136b441ff44024c615447 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Tue, 25 Sep 2012 11:25:04 +0000 Subject: [PATCH] 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 --- server/src/com/vaadin/server/VaadinServlet.java | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5