From c708e2d4cc5d3924f1e5fae4e69f9f491b0b433e Mon Sep 17 00:00:00 2001 From: Matthias Villiger Date: Tue, 13 Feb 2024 13:52:22 +0100 Subject: [PATCH] Fix no cache http headers --- .../java/org/eclipse/scout/sdk/core/util/Resources.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.scout.sdk.core/src/main/java/org/eclipse/scout/sdk/core/util/Resources.java b/org.eclipse.scout.sdk.core/src/main/java/org/eclipse/scout/sdk/core/util/Resources.java index dcb031a9b..611504244 100644 --- a/org.eclipse.scout.sdk.core/src/main/java/org/eclipse/scout/sdk/core/util/Resources.java +++ b/org.eclipse.scout.sdk.core/src/main/java/org/eclipse/scout/sdk/core/util/Resources.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2023 BSI Business Systems Integration AG + * Copyright (c) 2010, 2024 BSI Business Systems Integration AG * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 @@ -199,8 +199,8 @@ static InputStream doHttpGet(URI uri) throws IOException, InterruptedException { .uri(uri) .version(Version.HTTP_2) .timeout(timeout) - .setHeader(HEADER_PRAGMA, "no-cache") // HTTP/1.0 - .setHeader(HEADER_CACHE_CONTROL, "no-cache, no-store, must-revalidate") // HTTP/1.1 + .setHeader(HEADER_PRAGMA, "no-cache") + .setHeader(HEADER_CACHE_CONTROL, "no-cache, max-age=0, must-revalidate") .setHeader(HEADER_ACCEPT_ENCODING, ENCODING_GZIP) // support gzip compression .GET() .build();