summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnastasia Smirnova <anasmi@utu.fi>2018-05-08 10:46:37 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-05-16 07:43:56 +0300
commit77a00411c99accdde2a27e29d905c977c5031acc (patch)
treeb00c62d2533a5ac5ba00ee6c60e70b568a73be81
parentb6d5d0cac8a9ae2f99ef7fdc34d8e53353fcf84b (diff)
downloadvaadin-framework-77a00411c99accdde2a27e29d905c977c5031acc.tar.gz
vaadin-framework-77a00411c99accdde2a27e29d905c977c5031acc.zip
Set no cache headers for unsupported browsers (#10899)
Fixes #10890
-rw-r--r--server/src/main/java/com/vaadin/server/UnsupportedBrowserHandler.java1
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
}