diff options
author | Anastasia Smirnova <anasmi@utu.fi> | 2018-05-08 10:46:37 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-05-08 10:46:37 +0300 |
commit | 5b5792364a41ab8de28d90e26f42bbbe01ac1dac (patch) | |
tree | e4ab00df164c5a507f32f4bfdb08d690265feed4 | |
parent | f5dae328dac8645d5cf6398744ad0fc1d4db17c0 (diff) | |
download | vaadin-framework-5b5792364a41ab8de28d90e26f42bbbe01ac1dac.tar.gz vaadin-framework-5b5792364a41ab8de28d90e26f42bbbe01ac1dac.zip |
Set no cache headers for unsupported browsers (#10899)
Fixes #10890
-rw-r--r-- | server/src/main/java/com/vaadin/server/UnsupportedBrowserHandler.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/server/UnsupportedBrowserHandler.java b/server/src/main/java/com/vaadin/server/UnsupportedBrowserHandler.java index fd9edb42b8..eb99690611 100644 --- a/server/src/main/java/com/vaadin/server/UnsupportedBrowserHandler.java +++ b/server/src/main/java/com/vaadin/server/UnsupportedBrowserHandler.java @@ -44,6 +44,7 @@ public class UnsupportedBrowserHandler extends SynchronizedRequestHandler { // bypass if cookie set String c = request.getHeader("Cookie"); if (c == null || !c.contains(FORCE_LOAD_COOKIE)) { + response.setNoCacheHeaders(); writeBrowserTooOldPage(request, response); return true; // request handled } |