forked from Archives/Athou_commafeed
increase static resources cache duration (#1782)
This commit is contained in:
@@ -4,6 +4,7 @@ quarkus.http.test-port=8085
|
|||||||
quarkus.http.enable-compression=true
|
quarkus.http.enable-compression=true
|
||||||
|
|
||||||
# http cache
|
# http cache
|
||||||
|
quarkus.http.static-resources.max-age=P30d
|
||||||
## make sure the webapp is always up to date
|
## make sure the webapp is always up to date
|
||||||
quarkus.http.filter.index-html.header."Cache-Control"=no-cache
|
quarkus.http.filter.index-html.header."Cache-Control"=no-cache
|
||||||
quarkus.http.filter.index-html.matches=/
|
quarkus.http.filter.index-html.matches=/
|
||||||
|
|||||||
@@ -18,6 +18,6 @@ class StaticFilesIT {
|
|||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
@ValueSource(strings = { "/favicon.ico" })
|
@ValueSource(strings = { "/favicon.ico" })
|
||||||
void servedWithCache(String path) {
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user