kaazing / http2-cache.js

2 stars 11 forks source link

Cancel duplicate push promises streams #111

Open dpwspoon opened 5 years ago

dpwspoon commented 5 years ago

If the http2-cache.js gets 2 push promises for the same url opened, it should cancel one of them.

It is possible, that when requests for the same resource are sent with different authorization headers, the response could be cache-control: public or some other shareable cache directive. This will result in multiple push promise streams for the same resource.

http2-cache.js should cancel one of the push promises if the request urls are the same

hthetiot commented 5 years ago

Need work on PR to handle cache directive a bit more i think