Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Conceptually yes, but specifically it's implemented by intercepting the browser's internal fetch process. So it's like a "browser-internal" proxy -- or not a proxy at all.

You could do something similar with a proxy, but it may run into issues with HTTPS, which this gets around as we are beyond the terminator. In this way, you can serve the content, and save the content, via getting in the middle of the same fetch process and the browser doesn't know the difference (mostly).



What sort of API can be used for this? Is it a special proxy setting, extension or WebDriver client?


The network intercepting APIs. Right now we use CDP/RDP and the Fetch domain: https://chromedevtools.github.io/devtools-protocol/tot/Fetch...

There's also somewhat equivalent surface exposed by WebDriver BiDi: https://w3c.github.io/webdriver-bidi/#module-network-command...

If you want to read more about these sorts of protocols, see: https://firefox-source-docs.mozilla.org/remote/index.html


Thanks a lot!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: