File listing — use browser cache (#1164)

This commit is contained in:
Cønstantine Kovalensky 2023-11-23 19:05:32 +04:00 committed by GitHub
commit 3c7f3cf7d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = [