Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Fixed loadFromCache with strategy IFFRESH.

luccioman242707f9b4c2
diff --git a/source/net/yacy/repository/LoaderDispatcher.java b/source/net/yacy/repository/LoaderDispatcher.java
index 323305fdd..e606d43bc 100644
--- a/source/net/yacy/repository/LoaderDispatcher.java
+++ b/source/net/yacy/repository/LoaderDispatcher.java
@@ -331,6 +331,8 @@ public final class LoaderDispatcher {
}
}
LoaderDispatcher.log.info("cache hit/stale for: " + url.toNormalform(true));
+ /* Cached content can not be used : we return a null response to ensure callers will detect no cache response is available */
+ response = null;
} else if (cachedResponse != null) {
LoaderDispatcher.log.warn("HTCACHE contained response header, but not content for url " + url.toNormalform(true));
}