http-early-hints #
This is an experimental nginx module that sending 103 early hints before sending content(NGX_HTTP_ACCESS_PHASE).
Source: upstream source
Directives
add_early_header #
syntax: add_early_header 2 args; · context: location, location-if
Adds a custom header to be sent with the HTTP 103 Early Hints response before the final reply.
Example
location /103 {
add_early_header "Link" "</main.css>;rel=preload";
add_early_header "Link" "</main.js>;rel=preload";
if ($early_hints = 1) {
return 200;
}
}