mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
16 lines
552 B
JavaScript
16 lines
552 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.getHeader('X-Link') +
|
|
">; rel=preconnect" + ", " +
|
|
"<" +
|
|
request.getHeader('X-Link') +
|
|
">; rel=preconnect; crossOrigin=anonymous");
|
|
response.write("check that header");
|
|
}
|
|
|