From ffc3d393e52e3c0d62e23dbd6fdc8fe695ca96ee Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 20 Sep 2024 23:25:38 +0200 Subject: SimplePie support for HTTP cache policies (#6812) * SimplePie support for HTTP cache policies Discussion in https://github.com/FreshRSS/simplepie/pull/26 * Bump SimplePie commit * Typos * Typos * Simpler logic * Explicitly disable cache for non-GET flows * Bump SimplePie commit * Bump SimplePie commit * Bump SimplePie commit * Bump SimplePie commit --- config.default.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config.default.php') diff --git a/config.default.php b/config.default.php index af9f45511..5d43d7d82 100644 --- a/config.default.php +++ b/config.default.php @@ -99,10 +99,14 @@ return array( # Duration in seconds of the login cookie. 'cookie_duration' => FreshRSS_Auth::DEFAULT_COOKIE_DURATION, - # Duration in seconds of the SimplePie cache, - # during which a query to the RSS feed will return the local cached version. + # Duration in seconds of the SimplePie cache, during which a query to the RSS feed will return the local cached version. # Especially important for multi-user setups. + # Might be overridden by HTTP response headers. 'cache_duration' => 800, + # Minimal cache duration (in seconds), overriding HTTP response headers `Cache-Control` and `Expires`, + 'cache_duration_min' => 60, + # Maximal cache duration (in seconds), overriding HTTP response headers `Cache-Control` and `Expires`, + 'cache_duration_max' => 86400, # SimplePie HTTP request timeout in seconds. 'timeout' => 20, -- cgit v1.2.3