Sanzo is a demo for customized resource retrieval based on Service Worker API.
This demo includes
- Hijack resource (
<img>
/<video>
/<audio>
) requests with Service Worker API - Find target servers by call some resolve API
- Check net connection of target servers and choose the best one
- Retrieve resource content from the chosen target server
- Use the result from the chosen target server
- Browser support for Service Workers: https://caniuse.com/serviceworkers