@Override
	public void accept(ServerWebExchange exchange, CachedResponse cachedResponse) {
		ServerHttpResponse response = exchange.getResponse();
		long calculatedMaxAgeInSeconds = calculateMaxAgeInSeconds(exchange.getRequest(), cachedResponse,
				configuredTimeToLive);
		rewriteCacheControlMaxAge(response.getHeaders(), calculatedMaxAgeInSeconds);
	}
@Test
	void otherCacheControlValuesAreNotRemoved_whenMaxAgeIsModified() {
		inputExchange.getResponse().getHeaders().setCacheControl("max-stale=12, min-stale=1, max-age=1234");
		Duration timeToLive = Duration.ofSeconds(30);
		CachedResponse inputCachedResponse = CachedResponse.create(HttpStatus.OK).timestamp(clock.instant()).build();

		SetMaxAgeHeaderAfterCacheExchangeMutator toTest = new SetMaxAgeHeaderAfterCacheExchangeMutator(timeToLive,
				clock, false);
		toTest.accept(inputExchange, inputCachedResponse);

		String[] cacheControlValues = StringUtils
			.tokenizeToStringArray(inputExchange.getResponse().getHeaders().getCacheControl(), ",");
		assertThat(cacheControlValues).contains("max-stale=12", "min-stale=1");
	}