开发者 | sandesh055 |
---|---|
更新时间 | 2017年1月23日 17:09 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Link:<...> rel="prefetch"
header to every enqueued script and style page. Is doesn't support who output their scripts directly into the page itself. This plugin doesn't affect any visual part of site.
Read more about server push here
Note : It requires a web server that supports HTTP/2.
/wp-content/plugins/sj-http2-server-push
directory, or install the plugin through the WordPress plugins screen directly.Server push is triggered by the same mechanism as link prefetching, which almost all major modern browsers support over HTTP 1.x. You can take advantage of "preload" even if you don't have HTTP/2's features. People visiting your site may still get a better experience from it. Read here about preload
There are a couple ways:
nghttp -v http://example.com
will show all the HTTP/2 signalling packets, HTTP headers, content, and resources sent from the server in a single request. You can see PUSH PROMISE
signals from the server and the pushed resources after the main page is sent.PUSH PROMISE
packets and the pushed resources.