Page MenuHomePhorge

D25694.1736648359.diff
No OneTemporary

D25694.1736648359.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
Sun, Jan 12, 02:19 (5 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111711
Default Alt Text
D25694.1736648359.diff (571 B)

Event Timeline