Add cache-control headers to HTTP requests and update version to 1.2
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'de.catmangames.jsonfetcher'
|
||||
version = '1.1'
|
||||
version = '1.2'
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
|
||||
@@ -58,6 +58,8 @@ public class JsonFetcher {
|
||||
|
||||
HttpRequest req = HttpRequest.newBuilder()
|
||||
.uri(java.net.URI.create(baseUrl + path))
|
||||
.header("Cache-Control", "no-cache, no-store, must-revalidate")
|
||||
.header("Pragma", "no-cache")
|
||||
.GET()
|
||||
.build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user