Support Link HTTP headers with rel=preload
#26605
AKockWorth
started this conversation in
Ideas
Replies: 2 comments
-
|
That would be great to have a Link HTTP header together with an HTML link tag in order to optimize performance. It's a very popular approach and for example, Cloudflare supports it and enables server push by default, Nginx and Ingress-nginx allows to enable server push. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is there any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
If the NextJS web server would, in addition to the preload links in the HTML source, also respond with Link HTTP headers, we could use this Nginx feature to automatically HTTP/2 Push the resources to the client.
Describe the solution you'd like
The HTTP handler that renders the HTML should be able to access the information about which scripts to include and set the desired headers.
Describe alternatives you've considered
A separate proxy web server that parses the HTML, injects the headers, and passes on the response.
Beta Was this translation helpful? Give feedback.
All reactions