From 647cc95c10db4bc153ed800740a54527b5e4be0b Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 28 Dec 2024 08:42:27 +0100 Subject: [PATCH] fix: disable server-side caching for the search page --- includes/pages.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/pages.php b/includes/pages.php index 38d7aea..d73ae01 100644 --- a/includes/pages.php +++ b/includes/pages.php @@ -81,8 +81,6 @@ if (session_start()) { header_remove("Pragma"); include 'page_tos.php'; } elseif (count($segments) == 1 && $segments[0] == 'search') { - header("Cache-Control: public, max-age=60"); - header_remove("Pragma"); include 'page_search.php'; } elseif (count($segments) == 1 && $segments[0] == 'login') { include 'page_login.php';