aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/extensionController.php
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-09-05 08:16:52 +0200
committerGravatar GitHub <noreply@github.com> 2025-09-05 08:16:52 +0200
commit858616f075e5a66a5e0973af421a9f300b3b9ce1 (patch)
treea67eb709c387d03b6471a41fd6b76c60ed2334bf /app/Controllers/extensionController.php
parent6c9a9ee2266d7fec554d53218a29d121a4a08ee8 (diff)
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)
Diffstat (limited to 'app/Controllers/extensionController.php')
-rw-r--r--app/Controllers/extensionController.php2
1 files changed, 1 insertions, 1 deletions
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);
}
}