Score:0

Nginx reverse proxy http2 push preload

gb flag

I configured nginx 1.18 to push an image with the preload.

This i the nginx configuration
        location / {
             proxy_pass http://miosito;

             proxy_http_version 1.1;
             proxy_set_header Connection "";
             proxy_set_header X-Real-IP $remote_addr;
             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

             http2_push_preload on;
      }
}

these are the http headers obtained by curl from the back end

HTTP/1.1 200 OK
Content-Type: text/html;charset=UTF-8
Cache-Control: no-cache,no-store
Expires: Thu, 17 Apr 1971 01:00:00 GMT
Link: </img/fotoHome_800_blur.webp>; as="image"; rel="preload"
Content-Length: 4440
Date: Thu, 3 Nov 2022 09:57:57 GMT

this is the result on Chrome Developer Tools Chrome Developer Tools result

The page is online here.

It seems that http2 push does not work as aspected. Any suggestion?

Score:1
us flag

Current versions of Google Chrome do not support HTTP/2 push anymore. This is because its benefits are questionable and possibly beneficial implementation is very difficult to make.

https://developer.chrome.com/blog/removing-push/ has further details on the topic.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.