summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2012-12-17 15:03:12 +0200
committerAnna Koskinen <anna@vaadin.com>2012-12-17 15:03:12 +0200
commitde976e30c711fcfc986f4cc516342797c5667be7 (patch)
tree51c74e1f3c43040e6c82ed2eb75fa6f8c88b9791 /server
parent5c8d4c1f5dfa4f6fb2e73728e2c0512d3e5c7446 (diff)
downloadvaadin-framework-de976e30c711fcfc986f4cc516342797c5667be7.tar.gz
vaadin-framework-de976e30c711fcfc986f4cc516342797c5667be7.zip
Merge of (#9732) to Vaadin 7.
Ensure that the browser does not cache UIDL responses (iOS 6 Safari fix). Change-Id: I432cf2bf202e3f37b479e3950a6a39ca067497b4
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/server/VaadinPortlet.java5
1 files changed, 5 insertions, 0 deletions
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,