I am trying to add several header tags with the same name but different values. The last one prevails where the other don't appear to be output (when examining the output header using a sniffer). eg.

{% header "Link: </css/master.css>; rel=preload; as=style" %}
{% header "Link: </js/plugins.js>; rel=preload; as=script" %}
{% header "Link: </js/main.js>; rel=preload; as=script" %}

I'm trying to implement HTTP/2 server push for these files. Is this expected behaviour? Thanks


It looks like if you want to specify multiple values for a link header, you need to comma separate them: https://stackoverflow.com/a/25416118/684

  • Ah ok, thanks Brad. Hopefully that will do the trick.
    – Tchick
    May 9 '16 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.