|
|
|
|
|
by kevincox
2051 days ago
|
|
No, it's not possible. It will take a round trip for the client to tell the server if an object is cached. So you have two options: 1. Pessimistically start pushing the response, and stop if the client tells you it is already cached 2. Optimistically don't push the response until the client tells you that it doesn't have it cached. The first option is what push does. The second option is basically equivalent to sending a `Link: <..> rel=preload` header. So I guess one way to look at is that we had both choices available. But it turns out that Push wasn't used much and probably isn't the best option. |
|
Why wouldn't the client be able to give the server some information about what it has cached already when it makes the initial GET request for the HTML page?