Answers.Body: <p>It looks like if you want to specify multiple values for a link header, you need to comma separate them: <a href="https://stackoverflow.com/a/25416118/684">https://stackoverflow.com/a/25416118/684</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-09T17:50:48.090Z
Answers.Text: Ah ok, thanks Brad. Hopefully that will do the trick.
Answers.UserDisplayName: Tchick
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-09T17:35:14.397Z
Answers.LastActivityDate: 2016-05-09T17:35:14.397Z
Answers.LastEditDate: 2017-05-23T12:38:53.957Z
Answers.UserDisplayName: Brad Bell
Body: <p>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.</p>
  
  <pre><code>{% header "Link: &lt;/css/master.css&gt;; rel=preload; as=style" %}
  {% header "Link: &lt;/js/plugins.js&gt;; rel=preload; as=script" %}
  {% header "Link: &lt;/js/main.js&gt;; rel=preload; as=script" %}
  </code></pre>
  
  <p>I'm trying to implement HTTP/2 server push for these files. Is this expected behaviour? Thanks</p>
  
Tags: <templating>
Title: Last header tag overwrites any previous tag with same name - expected behaviour?
ThreadText: # Last header tag overwrites any previous tag with same name - expected behaviour?
  
  (Asked by: username_0 on 2016-05-09)
  
  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
  
  **Tags:** templating
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-05-09. Score: 3
  
  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>
  
  > **Comments:**
  > **username_0**: Ah ok, thanks username_1. Hopefully that will do the trick.  
  
  ---
  
  