From: Kai Moritz Date: Thu, 14 Jul 2011 10:21:06 +0000 (+0200) Subject: Log-Meldungen für den ersten Zugriff und unterdrücktes Caching ergänzt X-Git-Tag: 1.0.1~8 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=44f2d6e2dabb96de914471bacb9f1b340fb103f1;p=percentcodec Log-Meldungen für den ersten Zugriff und unterdrücktes Caching ergänzt --- 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 51330442..bfdf97ab 100644 --- a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControlInterceptor.java +++ b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControlInterceptor.java @@ -54,6 +54,7 @@ public class CacheControlInterceptor implements HandlerInterceptor { int cacheSeconds = cacheable.getCacheSeconds(request); if (cacheSeconds < 0) { + log.debug("{}: caching disabled!", request.getRequestURI()); response.setDateHeader(HEADER_DATE, now); response.setDateHeader(HEADER_EXPIRES, 0); response.addHeader(HEADER_PRAGMA, "no-cache"); @@ -122,6 +123,9 @@ public class CacheControlInterceptor implements HandlerInterceptor { return false; } + + log.debug("{}: first up!", request.getRequestURI()); + /** HTTP/1.1-Caching-Header richtig setzen!! */ response.setDateHeader(HEADER_LAST_MODIFIED, lastModified);