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

Send x-associated-content header to enable server push #8900

Open
ewinslow opened this issue Aug 30, 2015 · 2 comments
Open

Send x-associated-content header to enable server push #8900

ewinslow opened this issue Aug 30, 2015 · 2 comments

Comments

@ewinslow
Copy link
Contributor

This is how we enable server push. That we haven't been doing this is just so sad...

Could dramatically improve initial load time by cutting down on round trips. Really useful for AMD modules which require the client to execute JavaScript before they're discovered, but everything else as well, honestly.

One thing I haven't checked on is whether clients or servers do anything special to detect whether the browser has perhaps already received the content, in which case pushing it would actually be a waste of bandwidth.

@ewinslow
Copy link
Contributor Author

But frankly, I think the speed benefits are attractive enough to just do that first and then worry about how to optimize for bandwidth at the application level it we discover that clients/servers aren't already doing that.

@ewinslow
Copy link
Contributor Author

So when browsers start getting a push for a resource that is already in cache, they will send a RESET response to cancel the transmission and conserve bandwidth. This seems like a perfectly good tradeoff to me.

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

No branches or pull requests

1 participant