开发者 | shawfactor |
---|---|
更新时间 | 2017年5月25日 12:16 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/lh-http2-server-push
directory, or install the plugin through the WordPress plugins screen directly.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.The plugin relies on all assets being enqueued by the time the wp_enqueue_scripts action is run. However css styles can be enqueued and still appear in the head as late as the wp_print_styles action. This is porr design but IU can't control other plugins.
Yes there is a filter lh_htt2_server_push_urls. This filter takes the input of an associaytive array with the urls being the key and the file type being the value. By using this filter you can add, remove or modify all the pushed urls.