Page MenuHomePhorge

D25694.1737642659.diff
No OneTemporary

D25694.1737642659.diff

diff --git a/src/aphront/response/AphrontHTMLResponse.php b/src/aphront/response/AphrontHTMLResponse.php
--- a/src/aphront/response/AphrontHTMLResponse.php
+++ b/src/aphront/response/AphrontHTMLResponse.php
@@ -6,6 +6,11 @@
$headers = array(
array('Content-Type', 'text/html; charset=UTF-8'),
);
+ $cdn = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
+ if ($cdn) {
+ $headers[] = array('Link', '<'.$cdn.'>; rel="preconnect"');
+ }
+
$headers = array_merge(parent::getHeaders(), $headers);
return $headers;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 14:30 (6 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111711
Default Alt Text
D25694.1737642659.diff (571 B)

Event Timeline