+ If unchecked, the proxy will act using Cache Fresh / Cache Stale rules. If checked, the cache is always fresh which means
+ that a page is never loaded again if it was already stored in the cache. However, if the page does not exist in the cache, it will be loaded in any case.
+
+
:
diff --git a/htroot/Settings_p.java b/htroot/Settings_p.java
index 1386e6ee8..af1a7c0ac 100644
--- a/htroot/Settings_p.java
+++ b/htroot/Settings_p.java
@@ -84,6 +84,7 @@ public final class Settings_p {
// http networking settings
prop.put("isTransparentProxy", env.getConfigBool("isTransparentProxy", false) ? "1" : "0");
+ prop.put("proxyAlwaysFresh", env.getConfigBool("proxyAlwaysFresh", false) ? "1" : "0");
prop.put("proxy.sendViaHeader", env.getConfigBool("proxy.sendViaHeader", false) ? "1" : "0");
prop.put("proxy.sendXForwardedForHeader", env.getConfigBool("proxy.sendXForwardedForHeader", true) ? "1" : "0");
diff --git a/source/net/yacy/crawler/retrieval/Response.java b/source/net/yacy/crawler/retrieval/Response.java
index a0cca651b..0680a1fed 100644
--- a/source/net/yacy/crawler/retrieval/Response.java
+++ b/source/net/yacy/crawler/retrieval/Response.java
@@ -44,6 +44,7 @@ import net.yacy.crawler.data.ResultURLs.EventOrigin;
import net.yacy.document.Document;
import net.yacy.document.Parser;
import net.yacy.document.TextParser;
+import net.yacy.search.Switchboard;
public class Response {
@@ -419,6 +420,8 @@ public class Response {
*/
public boolean isFreshForProxy() {
+ if (Switchboard.getSwitchboard().getConfigBool("proxyAlwaysFresh", false)) return true;
+
// -CGI access in request
// CGI access makes the page very individual, and therefore not usable
// in caches