Skip to content

Commit

Permalink
Fix no cache http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilliger committed Feb 13, 2024
1 parent 2576efe commit c708e2d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c708e2d

Please sign in to comment.