Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preload Link header only to HTML pages #1500

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

charmander
Copy link
Contributor

No description provided.

…esponses

Making this choice based on the response’s `Content-Type` isn’t *great* design, but it isn’t too bad either. It’s also probably how Cloudflare decides whether to send an HTTP 103, since it already doesn’t for the responses this affects (Fetch/XHR and the public API).

Beyond avoiding a semantically incorrect and space-consuming header, this also prevents Chrome from logging a warning about unused preloads on operations like favoriting.
…t Cloudflare behavior

HTTP/2 server push has been dropped by Cloudflare and all browsers.
@charmander charmander force-pushed the preload-only-from-html branch from 4f565cc to a02ab04 Compare December 19, 2024 08:14
@charmander charmander merged commit e6e7dc4 into Weasyl:main Dec 19, 2024
4 checks passed
@charmander charmander deleted the preload-only-from-html branch December 19, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant