summaryrefslogtreecommitdiff
path: root/nginx/snippets/preload.conf
AgeCommit message (Collapse)Author
2025-06-27treewide: build via nixOphestra
2025-05-08raise fetchpriority for important imagesDaniel Micay
This was detected by PageSpeed Insights as an issue and it makes sense to address it.
2023-07-13Change string markings for replacementssmdyv
2023-03-24drop configuration to clear legacy push cookieDaniel Micay
2023-03-06update Roboto fontsDaniel Micay
2023-02-10drop HTTP/2 Push support since Chromium dropped itDaniel Micay
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.
2022-05-03drop configuration for clearing legacy push cookieDaniel Micay
2021-12-11rename push cookie for clarityDaniel Micay
2021-12-11add preload/push for main page phone imageDaniel Micay
2021-12-05use http2_push instead of http2_push_preloadDaniel Micay
This avoids needing to conditionally add nopush to each preloaded resource in the Link header. There's also no support for pushing JavaScript modules via http2_push_preload since nginx doesn't have support for rel=modulepreload.
2021-12-04avoid sending unnecessary push cookieDaniel Micay
2021-03-23explicitly set SameSite for preload session cookieDaniel Micay
2021-02-15use once per session preload / pushDaniel Micay
2021-02-15use a single Link header for preloadingDaniel Micay
2021-02-15add preload headers for core fontsDaniel Micay