diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2023-02-10 03:56:20 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2023-02-10 03:56:20 -0500 |
| commit | 1bc589d45f8496c3e6ecaa6f2e2a83f65e8594a3 (patch) | |
| tree | 37a54c57536599fce015d676aea35c1d661a5337 /nginx/snippets/preload.conf | |
| parent | 3b4c47b51bf3c3d25c4d445e34949310ec939871 (diff) | |
drop HTTP/2 Push support since Chromium dropped it
This only improves performance for the initial page load by sending
resources that are almost always needed before the client receives the
preload headers and fetches them. It can degrade performance in some
edge cases such as clients with web fonts disabled or if the session
cookie is cleared without the cache being cleared. Clients can cancel
the push transfers once they start receiving them, but it's wasteful.
Safari and Firefox still support this feature but are likely to follow
the lead of Chromium and drop support for it. Few websites are going to
bother with it without Chromium support and usage is already dropping.
Diffstat (limited to 'nginx/snippets/preload.conf')
| -rw-r--r-- | nginx/snippets/preload.conf | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nginx/snippets/preload.conf b/nginx/snippets/preload.conf index 96db1dc0..1e187441 100644 --- a/nginx/snippets/preload.conf +++ b/nginx/snippets/preload.conf @@ -1,6 +1,2 @@ add_header Link "<{{path|/main.css}}>; rel=preload; as=style; integrity={{integrity|/main.css}}, </fonts/roboto-v29-regular-latin.woff2>; rel=preload; as=font; crossorigin, </fonts/roboto-v29-bold-latin.woff2>; rel=preload; as=font; crossorigin, <{{path|/mask-icon.svg}}>; rel=preload; as=image$preload_resources_uri" always; -add_header Set-Cookie $push_cookie always; -http2_push $push_stylesheet; -http2_push $push_font_regular; -http2_push $push_font_bold; -http2_push $push_mask_icon; +add_header Set-Cookie $clear_legacy_push_cookie always; |
