Welcome to Centmin Mod Community
Register Now

Nginx Nginx tempalte with push

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by adamus007p, Mar 25, 2020.

  1. adamus007p

    adamus007p Member

    285
    17
    18
    Feb 8, 2019
    Ratings:
    +29
    Local Time:
    3:58 AM
    Hello,


    May anyone share with nginx template (Wordpress, anything) where you use push?

    Does for push do i need to use non minified CSS or only pure CSS?

    Thank you in advance.
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,300
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:58 AM
    Nginx 1.21.x
    MariaDB 10.x
    Unfortunately HTTP/2 push is only good for first visits and not repeat/return visitors. As such you need for Nginx HTTP/2 server push to be browser cache conditionally aware so as to NOT do HTTP/2 server push on return/repeat visits. You can see example of using a custom cookie to determine browser cache awareness for HTTP/2 server push at Nginx - Nginx HTTP/2 Server Push Finally Supported