aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Files.php
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-18 03:30:21 +0200
committerGitHub <noreply@github.com>2023-10-18 03:30:21 +0200
commit154a9989a7a78c02ce8811f03e6879240ad9e57c (patch)
tree99e7bd1f8191d251ebd7da866a4c14dbb7502b91 /lib/private/legacy/OC_Files.php
parente1d33096d387314b20313204a17389225b44d957 (diff)
parent066f6ef16c7adb365b8c260ea6f06906ab63724e (diff)
downloadnextcloud-server-154a9989a7a78c02ce8811f03e6879240ad9e57c.tar.gz
nextcloud-server-154a9989a7a78c02ce8811f03e6879240ad9e57c.zip
Merge pull request #39852 from nextcloud/pragmaHeader
Stop sending deprecated Pragma header
Diffstat (limited to 'lib/private/legacy/OC_Files.php')
-rw-r--r--lib/private/legacy/OC_Files.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Files.php b/lib/private/legacy/OC_Files.php
index 911c713f840..ac0a2bbd0e9 100644
--- a/lib/private/legacy/OC_Files.php
+++ b/lib/private/legacy/OC_Files.php
@@ -76,7 +76,6 @@ class OC_Files {
private static function sendHeaders($filename, $name, array $rangeArray): void {
OC_Response::setContentDispositionHeader($name, 'attachment');
header('Content-Transfer-Encoding: binary', true);
- header('Pragma: public');// enable caching in IE
header('Expires: 0');
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
$fileSize = \OC\Files\Filesystem::filesize($filename);