From de976e30c711fcfc986f4cc516342797c5667be7 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Mon, 17 Dec 2012 15:03:12 +0200 Subject: [PATCH] Merge of (#9732) to Vaadin 7. Ensure that the browser does not cache UIDL responses (iOS 6 Safari fix). Change-Id: I432cf2bf202e3f37b479e3950a6a39ca067497b4 --- server/src/com/vaadin/server/VaadinPortlet.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/com/vaadin/server/VaadinPortlet.java b/server/src/com/vaadin/server/VaadinPortlet.java index 507f563289..94555fe2ff 100644 --- a/server/src/com/vaadin/server/VaadinPortlet.java +++ b/server/src/com/vaadin/server/VaadinPortlet.java @@ -479,6 +479,11 @@ public class VaadinPortlet extends GenericPortlet implements Constants { // Handles AJAX UIDL requests communicationManager.handleUidlRequest(vaadinRequest, vaadinResponse, portletWrapper, uI); + + // Ensure that the browser does not cache UIDL + // responses. + // iOS 6 Safari requires this (#9732) + response.setProperty("Cache-Control", "no-cache"); return; } else { handleOtherRequest(vaadinRequest, vaadinResponse, -- 2.39.5