Page MenuHomePhorge

D25694.1734674389.diff
No OneTemporary

D25694.1734674389.diff

diff --git a/src/aphront/response/AphrontResponse.php b/src/aphront/response/AphrontResponse.php
--- a/src/aphront/response/AphrontResponse.php
+++ b/src/aphront/response/AphrontResponse.php
@@ -110,6 +110,11 @@
$headers[] = array('Referrer-Policy', 'no-referrer');
+ $cdn = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
+ if ($cdn) {
+ $headers[] = array('Link', '<'.$cdn.'>; rel="preconnect"');
+ }
+
foreach ($this->headers as $header) {
$headers[] = $header;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 05:59 (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016624
Default Alt Text
D25694.1734674389.diff (524 B)

Event Timeline