Skip to content

Comment on HTTP/2 Server Push on Netlify

Comments

Do any browsers already provide a way to refuse pushed resources?

You'd have to handle this in service workers. You want this: https://datatracker.ietf.org/doc/draft-ietf-httpbis-cache-di...

Why would you need this? The use case of Server Push is to download resources earlier than a browser can request them, but will eventually require anyway.

What are you hoping to refuse?

Thanks for the reply, and good point. I guess I feel uneasy about letting the server "push" at will, for instance when dealing with mobile data plans. But come to think about it, I don't have much control on what I'll get once I visit a website.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.