]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merge of (#9732) to Vaadin 7. 16/516/1
authorAnna Koskinen <anna@vaadin.com>
Mon, 17 Dec 2012 13:03:12 +0000 (15:03 +0200)
committerAnna Koskinen <anna@vaadin.com>
Mon, 17 Dec 2012 13:03:12 +0000 (15:03 +0200)
Ensure that the browser does not cache UIDL responses (iOS 6 Safari
fix).

Change-Id: I432cf2bf202e3f37b479e3950a6a39ca067497b4

server/src/com/vaadin/server/VaadinPortlet.java

index 507f563289881d414b66cdf7bf5e8572bc100126..94555fe2ffc60dd92c2ec8bf2b65eb73765ed911 100644 (file)
@@ -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,