Page MenuHomePhorge

D25694.1734612369.diff
No OneTemporary

D25694.1734612369.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, Dec 19, 12:46 (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015053
Default Alt Text
D25694.1734612369.diff (571 B)

Event Timeline