• 陈雷雷
    2019-08-06
    比如我的网站是 www.baidu.com
    那我应该写
    http2_push_preload on;
    add_header Link "<https://www.baidu.com/layui.css>; as=style; rel=preload";
    是这个配置吗
    
    
  • 陈雷雷
    2019-08-06
    你好 我是反向代理的tomcat
    我看了下样式文件绝对路径
    /application/tomcat/webapps/jpress/templates/perfree-simple-pro/static/plugins/layui/css/layui.css

    我配置的推送样式1:
     http2_push_preload on; #主动推送开启
     http2_push "./templates/perfree-simple-pro/static/css/style.css";
     http2_push "./templates/perfree-simple-pro/static/plugins/layui/css/layui.css";

    我配置的推送样式2:
    http2_push_preload on; #主动推送开启
    add_header Link "</layui.css>; as=style; rel=preload";
    add_header Link "</style.css>; as=style; rel=preload";

    这两个样式都没有显示是被推送来的,老师,这个我是配置错了么 正确应该怎么配置
    展开

    作者回复: http2_push后应是URL

     1
    
  • Panda
    2019-04-08
    HTTP 的 push 是NGINX主动向客户端推送文件对吗? 是多路复用的一种体现?

    作者回复: 是的

    
    
我们在线,来聊聊吧