<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>

CC BY-SA 3.0
2016-05-09T17:50:48.090Z
Ah ok, thanks Brad. Hopefully that will do the trick.
Tchick
CC BY-SA 3.0
2016-05-09T17:35:14.397Z
2016-05-09T17:35:14.397Z
2017-05-23T12:38:53.957Z
Brad Bell
<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>

<templating>
Last header tag overwrites any previous tag with same name - expected behaviour?
# 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: ; rel=preload; as=style" %}
{% header "Link: ; rel=preload; as=script" %}
{% header "Link: ; 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 Brad. Hopefully that will do the trick.  

---

