From: Tim Düsterhus Date: Thu, 10 Jun 2021 08:49:15 +0000 (+0200) Subject: Prevent caching of redirects in shared caches X-Git-Tag: 5.4.0_Beta_2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59a7dd72317a81d3ca6e3617946c985522fd0b73;p=GitHub%2FWoltLab%2FWCF.git Prevent caching of redirects in shared caches see #4273 --- diff --git a/wcfsetup/install/files/lib/util/HeaderUtil.class.php b/wcfsetup/install/files/lib/util/HeaderUtil.class.php index c052c8585c..8c62084ba2 100644 --- a/wcfsetup/install/files/lib/util/HeaderUtil.class.php +++ b/wcfsetup/install/files/lib/util/HeaderUtil.class.php @@ -187,6 +187,7 @@ final class HeaderUtil } } + \header('cache-control: private'); \header('Location: ' . $location); }