• Hello! Thank you, for your plugin!
    Function http2 push don’t work just header("Link: </css/styles.css>; rel=preload; as=style", false);
    In nginx, you need add http2_push_preload on; in section server {};. If you use this function without http2_push_preload on; in nginx, it’s don’t work as a push, it’s work as normal resource download. In Chrome dev tools (F12 key, Network tab) you will see different betwee initiator “Other” and “Push/Other”.
    Yet – pls add push only for first resource downloading, across cookie, for example that:

    `if(empty($_COOKIE[“http2push”]))
    {
    setcookie(“http2push”,”1″);
    header(“Link: </css/styles.css>; rel=preload; as=style”, false);
    header(“Link: </css/jquery.fancybox.css>; rel=preload; as=style”, false);
    }`

    It’s great work for already caching resources, they don’t pushing again.
    Sorry for my English =)

  • The topic ‘Http2 don’t work on Nginx.’ is closed to new replies.