Adding IF_MODIFIED_SINCE header
@@ -73,6 +73,7 @@ public class CacheControlClientRequestFilter implements ClientRequestFilter {
cache.remove(key, entry);
} else {
request.getHeaders().add(HttpHeaders.IF_NONE_MATCH, ifNoneMatchHeader);
+ request.getHeaders().add(HttpHeaders.IF_MODIFIED_SINCE, ifModifiedSinceHeader);
request.setProperty(CACHED_ENTITY_PROPERTY, entry.getData());
}
} else {
