Get the most out of your Centmin Mod LEMP stack
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

    254
    17
    18
    Feb 8, 2019
    Ratings:
    +28
    Local Time:
    3:58 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

    47,474
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    12:58 AM
    Nginx 1.19.x
    MariaDB 5.5/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