Closed
Description
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:
- Client requests
/my_page
. - While rendering
/my_page
, the view helperjs('main.js')
is called. - connect-assets implicitly sends the response headers
Link: /assets/main-d41d8cd98f00b204e9800998ecf8427e.js; rel=prefetch