File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,6 +124,13 @@ map $http_x_requested_with $es_http_x_request_with {
124124 "XMLHttpRequest" 1;
125125}
126126
127+ # Early Hints pass-through gate
128+ # Only enable for top-level navigations on HTTP/2 or HTTP/3 clients.
129+ map $http_sec_fetch_mode $es_early_hints {
130+ default "";
131+ navigate $http2$http3;
132+ }
133+
127134# X-Cache-Enabled Header Maps for WordPress Site Health - DISABLED FOR TESTING
128135#map $upstream_cache_status $header_x_cache_enabled {
129136# default true;
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ if ($skip_cache = 0 ) {
2424# HTTP Reponse Headers
2525include /etc/nginx/globals/response-headers.conf;
2626
27+ # Pass upstream 103 Early Hints only for eligible clients.
28+ early_hints $es_early_hints;
29+
2730# Include FastCGI Configuration
2831include /etc/nginx/globals/fastcgi-modified.conf;
2932fastcgi_index index.php;
You can’t perform that action at this time.
0 commit comments