summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-09-25 11:25:04 +0000
committerJohannes Dahlström <johannesd@vaadin.com>2012-10-03 15:26:42 +0300
commita930bbb16eeb7c8663c136b441ff44024c615447 (patch)
treeea69d3155eb74d76dbadc8bf437d1f772207910c
parentfacd94111590d9fe7b8b5ceffe3f7d0db0024948 (diff)
downloadvaadin-framework-a930bbb16eeb7c8663c136b441ff44024c615447.tar.gz
vaadin-framework-a930bbb16eeb7c8663c136b441ff44024c615447.zip
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
-rw-r--r--server/src/com/vaadin/server/VaadinServlet.java5
1 files changed, 5 insertions, 0 deletions
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