Page MenuHomePhorge

D25694.1737944397.diff
No OneTemporary

D25694.1737944397.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
Mon, Jan 27, 02:19 (3 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1149868
Default Alt Text
D25694.1737944397.diff (524 B)

Event Timeline