From d8c8a4631d045e6a8c3b8e33f840fdf105c2696b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 14 Feb 2016 00:28:08 +0900 Subject: [PATCH] nghttpx: Interleave text/html pushed resources with associated resource --- src/shrpx_http2_upstream.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shrpx_http2_upstream.cc b/src/shrpx_http2_upstream.cc index 470585af..7e909a25 100644 --- a/src/shrpx_http2_upstream.cc +++ b/src/shrpx_http2_upstream.cc @@ -1558,7 +1558,9 @@ int Http2Upstream::adjust_pushed_stream_priority(Downstream *downstream) { } if (!util::istarts_with_l(ct->value, "application/javascript") && - !util::istarts_with_l(ct->value, "text/css")) { + !util::istarts_with_l(ct->value, "text/css") && + // for polymer... + !util::istarts_with_l(ct->value, "text/html")) { return 0; }