From 2e1e40420b55be960c4e0b876363b250989931a0 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 25 Jun 2012 00:59:52 +0200 Subject: [PATCH] =?utf8?q?Antworten=20mit=20unterdr=C3=BCcktem=20Caching?= =?utf8?q?=20wurden=20nicht=20als=20komprimiert=20markiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../java/de/halbekunst/juplo/cachecontrol/CacheControl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java index 6ded0112..bf49a453 100644 --- a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java +++ b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java @@ -130,6 +130,8 @@ public class CacheControl { response.addHeader(Headers.HEADER_CACHE_CONTROL, "no-store"); response.addHeader(Headers.HEADER_CACHE_CONTROL, "max-age=0"); response.addHeader(Headers.HEADER_CACHE_CONTROL, "s-max-age=0"); + if (handle.isZipped()) + response.addHeader(Headers.HEADER_CONTENT_ENCODING, "gzip"); return true; } -- 2.20.1