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

[adapter-cloudflare-workers] add Link headers to preloaded assets #4783

Closed
maraisr opened this issue Apr 30, 2022 · 0 comments
Closed

[adapter-cloudflare-workers] add Link headers to preloaded assets #4783

maraisr opened this issue Apr 30, 2022 · 0 comments

Comments

@maraisr
Copy link

maraisr commented Apr 30, 2022

Describe the problem

Cloudflare supports Early Hints, which is as far as my understanding goes — will async fetch any assets as the response is served, and allows the browser to fetch assets before parsing the document.

Would it be possible at all to flush these headers.

👉 https://developers.cloudflare.com/cache/about/early-hints
eg:

Link: </_app/start-b98cfa77.js>; rel=preload

Describe the proposed solution

I haven't delved too deeply, but feel the assets are available for the page (its injected in the html), so surely the header can also be flushed.

Alternatives considered

Do nothing, the html modulepreload seems alright.

Importance

nice to have

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant