# Serving static assets using cookie-free domain

**URL:** <https://meta.discourse.org/t/serving-static-assets-using-cookie-free-domain/113916>\
**Category:** Product Support\
**Created:** [4월 10, 2019, 2:14오전 UTC](https://meta.discourse.org/t/serving-static-assets-using-cookie-free-domain/113916 "2019-04-10T02:14:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [4월 10, 2019, 3:11오후 UTC](https://meta.discourse.org/t/serving-static-assets-using-cookie-free-domain/113916/6 "2019-04-10T15:11:15Z")

</div>

> [@P16](#):
>
> Discourse uses [multiplexing connections](https://hpbn.co/http2/#request-and-response-multiplexing)

Well, yes. I don’t see a way to use HTTP/2 and not do that. It’s the most important feature of the protocol!

> [@P16](#):
>
> [server push](https://w3c.github.io/preload/#server-push-%28http/2%29) to serve assets

I did write a plugin and a change to core to enable this. As it’s not available in nginx, you need to add another thing in the stack, be it a CDN with push (Fastly, Cloudflare) or a more modern reverse proxy (Caddy, H20).

But my benchmarks showed a negligible difference in the page render time, and if you add the fact that is isn’t cache aware (only H20 has a workaround on that) it’s pretty bad.

I’m hopeful that with the RFC 8297 this will be better as you won’t wait for all middleware to do their thing before returning with the homework for the user agent, but that RFC didn’t get much attention so far.

---

_[View the full topic](https://meta.discourse.org/t/serving-static-assets-using-cookie-free-domain/113916)._
