From: Kai Moritz Date: Sun, 10 Jul 2011 15:33:06 +0000 (+0200) Subject: Expires-Header werden jetzt schon bei cacheSeconds == 0 gesetzt X-Git-Tag: 1.0.1~11 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2fb06e1c99290119a970befac272280df388d4bc;p=percentcodec Expires-Header werden jetzt schon bei cacheSeconds == 0 gesetzt --- 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");