]> source.dussan.org Git - vaadin-framework.git/commitdiff
Ensure the browser does not cache UIDL responses (#9732)
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Tue, 25 Sep 2012 11:25:04 +0000 (11:25 +0000)
committerJohannes Dahlström <johannesd@vaadin.com>
Wed, 3 Oct 2012 12:26:42 +0000 (15:26 +0300)
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

index 9d1d79d8b17e7cf6cf881f3cb52d9bf5c0f63d25..06200352743b5f30232be5af6d01cb6b2624d056 100644 (file)
@@ -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