Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3299783
D25694.1743028578.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.1743028578.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
Wed, Mar 26, 22:36 (10 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1149868
Default Alt Text
D25694.1743028578.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