Skip to content

Investigate Server Hint response headers #246

Closed
@adunkman

Description

@adunkman

Hey, there’s this new(-ish) thing called Server Hints.

The idea is that while providing a response to a request, a server may know about associated content that the client is likely to need — and can inform the client immediately instead of waiting for subsequent requests.

There is also another new(-ish) thing that would allow us to push the data for this associated content automatically over SPDY/HTTP 2.0, but I don’t think we should do this (since it would ALWAYS send the content, even when the client already has the assets cached.

So, should we be sending Link? Is it practical? It’d be cool if we could send it without requiring any additional information — for example:

  1. Client requests /my_page.
  2. While rendering /my_page, the view helper js('main.js') is called.
  3. connect-assets implicitly sends the response headers Link: /assets/main-d41d8cd98f00b204e9800998ecf8427e.js; rel=prefetch

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions