Want more timely Centmin Mod News Updates?
Become a Member

Nginx Nginx tempalte with push

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

  1. adamus007p

    adamus007p Member

    378
    19
    18
    Feb 8, 2019
    Ratings:
    +38
    Local Time:
    5:03 PM
    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

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:03 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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