increase cache duration of static resources even more (#1782)

This commit is contained in:
Athou
2025-05-12 14:57:52 +02:00
parent ae35d43f7f
commit 0b5245643a
2 changed files with 2 additions and 2 deletions

View File

@@ -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=/

View File

@@ -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");
}
}