final long oneYearInSeconds = 365 * 24 * 60 * 60;
response.addDateHeader("Expires",
clock.getCurrentTime().inMillis() + oneYearInSeconds * 1000);
response.addHeader("Cache-Control", "max-age=" + oneYearInSeconds);
}
response.addHeader("Vary", VARY_HEADER_VALUE);
} else {
// disable caching
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Pragma", "no-cache");
final Calendar calendar =