Looking at the Early HInts RFC it shows examples of multiple Link: response headers.
Using IIS is not possible to create multiple response headers with the same name.
According to RFC 2616 rfc2616 (ietf.org) “Hypertext Transfer Protocol – HTTP/1.1”
“Multiple message-header fields with the same field-name MAY be present in a message if and only if the entire field-value for that header field is defined as a comma-separated list [i.e., #(values)]. It MUST be possible to combine the multiple header fields into one “field-name: field-value” pair, without changing the semantics of the message, by appending each subsequent field-value to the first, each separated by a comma.”
So instead of generating multiple headers, I am generating a single one with something like this:
Link: </style.css>; rel=preload; as=style , </script1.js>; rel=preload; as=script , </script2.js>; rel=preload; as=script
To anyone who has tested this already in the beta, will this work? If not, is it possible to add headers from Cloudflare UI instead of from origin?