Want to subscribe to topics you're interested in?
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

    194
    12
    18
    Feb 8, 2019
    Ratings:
    +22
    Local Time:
    11:42 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

    43,579
    9,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,264
    Local Time:
    7:42 PM
    Nginx 1.17.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