Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2682855
D25694.1734674389.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
524 B
Referenced Files
None
Subscribers
None
D25694.1734674389.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25694: Set "preconnect" HTTP header when "security.alternate-file-domain" is set
Attached
Detach File
Event Timeline
Log In to Comment