summaryrefslogtreecommitdiff
path: root/config.default.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-09-20 23:25:38 +0200
committerGravatar GitHub <noreply@github.com> 2024-09-20 23:25:38 +0200
commitffc3d393e52e3c0d62e23dbd6fdc8fe695ca96ee (patch)
tree816269f95975896b4151392fc29f3f7360157df7 /config.default.php
parentdd606141555880822ad9ae650bd2bb68cbb01692 (diff)
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
Diffstat (limited to 'config.default.php')
-rw-r--r--config.default.php8
1 files changed, 6 insertions, 2 deletions
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,