Max ages cache was wrongly set to 5 hours instead of 5 minutestags/7.5
@@ -46,7 +46,7 @@ public class CacheControlFilter implements Filter { | |||
*/ | |||
private static final int ONE_YEAR_IN_SECONDS = 365 * 24 * 60 * 60; | |||
private static final int FIVE_MINUTES_IN_SECONDS = 5 * 60 * 60; | |||
private static final int FIVE_MINUTES_IN_SECONDS = 5 * 60; | |||
private static final String MAX_AGE_TEMPLATE = "max-age=%d"; | |||
@@ -62,7 +62,7 @@ public class CacheControlFilterTest { | |||
underTest.doFilter(request, response, chain); | |||
verify(response).addHeader("Cache-Control", format("max-age=%s", 18_000)); | |||
verify(response).addHeader("Cache-Control", format("max-age=%s", 300)); | |||
} | |||
@Test | |||
@@ -71,7 +71,7 @@ public class CacheControlFilterTest { | |||
underTest.doFilter(request, response, chain); | |||
verify(response).addHeader("Cache-Control", format("max-age=%s", 18_000)); | |||
verify(response).addHeader("Cache-Control", format("max-age=%s", 300)); | |||
} | |||
@Test | |||
@@ -80,7 +80,7 @@ public class CacheControlFilterTest { | |||
underTest.doFilter(request, response, chain); | |||
verify(response).addHeader("Cache-Control", format("max-age=%s", 18_000)); | |||
verify(response).addHeader("Cache-Control", format("max-age=%s", 300)); | |||
} | |||
@Test |
@@ -37,7 +37,7 @@ import static util.ItUtils.call; | |||
public class HttpHeadersTest { | |||
private static final int ONE_YEAR_IN_SECONDS = 365 * 24 * 60 * 60; | |||
private static final int FIVE_MINUTES_IN_SECONDS = 5 * 60 * 60; | |||
private static final int FIVE_MINUTES_IN_SECONDS = 5 * 60; | |||
@ClassRule | |||
public static final Orchestrator orchestrator = Category4Suite.ORCHESTRATOR; |