From 858616f075e5a66a5e0973af421a9f300b3b9ce1 Mon Sep 17 00:00:00 2001 From: Inverle Date: Fri, 5 Sep 2025 08:16:52 +0200 Subject: Fixes for no-cache.txt (#7907) * Closes and fixes error from #7885 * `no-cache.txt` is now respected in `f.php`, `ext.php` and `serve` action in `extensionController` * And in all other places that weren't checking for `no-cache.txt` (some extensions maybe) --- app/Controllers/extensionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Controllers/extensionController.php b/app/Controllers/extensionController.php index ef63c38d2..38f04a277 100644 --- a/app/Controllers/extensionController.php +++ b/app/Controllers/extensionController.php @@ -330,7 +330,7 @@ class FreshRSS_extension_Controller extends FreshRSS_ActionController { header("Content-Type: {$content_type}"); header("Content-Disposition: inline; filename='{$filename}'"); header('Referrer-Policy: same-origin'); - if (!httpConditional($mtime, cacheSeconds: 604800, cachePrivacy: 2)) { + if (file_exists(DATA_PATH . '/no-cache.txt') || !httpConditional($mtime, cacheSeconds: 604800, cachePrivacy: 2)) { echo $extension->getFile($filename); } } -- cgit v1.2.3