diff --git a/commafeed-server/src/main/resources/application.properties b/commafeed-server/src/main/resources/application.properties index 6d6c1e73..b8b38892 100644 --- a/commafeed-server/src/main/resources/application.properties +++ b/commafeed-server/src/main/resources/application.properties @@ -4,7 +4,7 @@ quarkus.http.test-port=8085 quarkus.http.enable-compression=true # http cache -quarkus.http.static-resources.max-age=P30d +quarkus.http.static-resources.max-age=P365d ## make sure the webapp is always up to date quarkus.http.filter.index-html.header."Cache-Control"=no-cache quarkus.http.filter.index-html.matches=/ diff --git a/commafeed-server/src/test/java/com/commafeed/integration/StaticFilesIT.java b/commafeed-server/src/test/java/com/commafeed/integration/StaticFilesIT.java index 231213f7..be27caec 100644 --- a/commafeed-server/src/test/java/com/commafeed/integration/StaticFilesIT.java +++ b/commafeed-server/src/test/java/com/commafeed/integration/StaticFilesIT.java @@ -18,6 +18,6 @@ class StaticFilesIT { @ParameterizedTest @ValueSource(strings = { "/favicon.ico" }) void servedWithCache(String path) { - RestAssured.given().when().get(path).then().statusCode(200).header("Cache-Control", "public, immutable, max-age=2592000"); + RestAssured.given().when().get(path).then().statusCode(200).header("Cache-Control", "public, immutable, max-age=31536000"); } }