mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
increase cache duration of static resources even more (#1782)
This commit is contained in:
@@ -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=/
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user