Spring Boot HTTP2 Server Push
Found a good example by Brian Clozel about HTTP / 2 and Spring Boot, especially with Server Push: https://github.com/bclozel/http2-experiments . There is index.html
one that has some image resources. However, these images are being pushed to the server, but I have no idea where exactly this push starts from. I don't see any push filters or other indicators that could cause the resources to be inside index.html
. Any ideas?
source to share
Jetty is PushCacheFilter
set up here in this example.
PushCacheFilter
automatically "recognizes" which secondary resources are associated with any resource, and automatically nudges them.
This example also shows a way to programmatically push a resource . However, this API has been deprecated in favor of using PushBuilder
.
PushBuilder
will be part of Servlet 4.0, becoming a standard API.
source to share