From 3c7f3cf7d0cdfbd0d2755d145bff9776e1ca1688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Thu, 23 Nov 2023 19:05:32 +0400 Subject: [PATCH] =?UTF-8?q?File=20listing=20=E2=80=94=20use=20browser=20ca?= =?UTF-8?q?che=20(#1164)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/includes/file_list_v2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/includes/file_list_v2.php b/library/includes/file_list_v2.php index 31a74de40..b6282065a 100644 --- a/library/includes/file_list_v2.php +++ b/library/includes/file_list_v2.php @@ -58,6 +58,8 @@ if (isset($torrent['info']['private']) && IS_GUEST) { die($lang['BT_PRIVATE_TORRENT']); } +header('Cache-Control: public, max-age=3600'); + $files = (new TorrentPier\Legacy\TorrentFileList($torrent)) -> fileTreeTable($torrent['info']['file tree']); $data = [