increase static resources cache duration (#1782)

This commit is contained in:
Athou
2025-05-11 18:02:48 +02:00
parent aa903039c8
commit eeceda0ca8
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ quarkus.http.test-port=8085
quarkus.http.enable-compression=true
# http cache
quarkus.http.static-resources.max-age=P30d
## 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=86400");
RestAssured.given().when().get(path).then().statusCode(200).header("Cache-Control", "public, immutable, max-age=2592000");
}
}