mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
5031bdb80e
--HG-- extra : rebase_source : 5ce4ef05217f6d513052f83a7e18b00d1596417a
16 lines
536 B
JavaScript
16 lines
536 B
JavaScript
// Generate response header "Link: <HREF>; rel=preconnect"
|
|
// HREF is provided by the request header X-Link
|
|
|
|
function handleRequest(request, response)
|
|
{
|
|
response.setHeader("Cache-Control", "no-cache", false);
|
|
response.setHeader("Link", "<" +
|
|
request.queryString +
|
|
">; rel=preconnect" + ", " +
|
|
"<" +
|
|
request.queryString +
|
|
">; rel=preconnect; crossOrigin=anonymous");
|
|
response.write("check that header");
|
|
}
|
|
|