HTTP2 server 推送
fengxueguang opened this issue · 1 comments
fengxueguang commented
生成了对应的key,pem,配置好了,但是说是不安全的,也同意继续了。
但是app.js并不是推送的,而是再次请求的,network两个请求。
看了一下命令行有错误输出,问下Failed to push: feature not supported这个问题怎么解决。
2023/04/11 22:50:18 Failed to push: feature not supported
[GIN] 2023/04/11 - 22:50:18 | 200 | 66.39µs | ::1 | GET "/"
[GIN] 2023/04/11 - 22:50:18 | 200 | 227.806µs | ::1 | GET "/assets/app.js"
fengxueguang commented
好吧,官方已经移除相应的功能,那么这个例子还有存在的必要吗?
浪费时间
Removing HTTP/2 Server Push from Chrome
https://developer.chrome.com/blog/removing-push/