From 2fb06e1c99290119a970befac272280df388d4bc Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 10 Jul 2011 17:33:06 +0200 Subject: [PATCH] Expires-Header werden jetzt schon bei cacheSeconds == 0 gesetzt --- .../halbekunst/juplo/cachecontrol/CacheControlInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControlInterceptor.java b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControlInterceptor.java index aeda87a6..51330442 100644 --- a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControlInterceptor.java +++ b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControlInterceptor.java @@ -53,7 +53,7 @@ public class CacheControlInterceptor implements HandlerInterceptor { return true; int cacheSeconds = cacheable.getCacheSeconds(request); - if (cacheSeconds == 0) { + if (cacheSeconds < 0) { response.setDateHeader(HEADER_DATE, now); response.setDateHeader(HEADER_EXPIRES, 0); response.addHeader(HEADER_PRAGMA, "no-cache"); -- 2.20.1