This is my first question here, hope I'm doing it right.
I'm using a LiteSpeed webserver with HTTP/2 (shared hosting provider), but I can't get the push feature to work. I'm not quite sure how to check if it works, but at least as far as I can tell it isn't working properly.
So I have looked up a ton of guides (HTTP/2 Server Push Tutorial or A Comprehensive Guide To HTTP/2 Server Push as examples), and they all mention changing the headers by adding the following:
link: </my/theme/css/style.css>; rel=preload; as=style
I understand that this code tells the server to preload said resource, in this case style.css. However, if the server supports HTTP/2 push, then it should automatically push the resource instead (as long as you don't add nopush at the end of it). The second link does mention that this is true for most, but not all servers.
So with this in mind, I created a simple test PHP page to see if I could get it working. The result was this:
Chrome DevTools showing Headers tab with link preload
Network tab in DevTools showing the result
So most of the guides I saw mentioned that the Initiator in the Network tab for the pushed resource would say Push / Other (or similar) instead of just Other, but as you can see from my result it just says Other. Not to mention that the resource doesn't get loaded in the same request, it just looks like a simple preload to me. I also tested my site with https://http2.pro/check, and it says no resource is pushed.
This was tested with Chrome 71.0.3578.98.
- Am I missing something important here? Could it be a problem with my server?
- Another question. When defining multiple resources in the headers for preload and push, some guides mention creating multiple link-elements, while others mention comma separating them in a single link-element. Are both of these correct, is one better than the other?
Any help or enlightenment is appreciated, thanks!