From 44f2d6e2dabb96de914471bacb9f1b340fb103f1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 14 Jul 2011 12:21:06 +0200 Subject: [PATCH] =?utf8?q?Log-Meldungen=20f=C3=BCr=20den=20ersten=20Zugrif?= =?utf8?q?f=20und=20unterdr=C3=BCcktes=20Caching=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../juplo/cachecontrol/CacheControlInterceptor.java | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.20.1