Debloat The Web With A Self-Hosted Compressing Proxy

It’s no secret that the dimensions of webpages has been slowly — or not so slowly — creeping up over time. Does a easy web site must span a number of floppy disks? [PortalRunner’s] doesn’t — or moderately, he doesn’t need to burn that a lot of his restricted cellular knowledge. So he constructed a self-hosted HTTPS proxy to compress pictures and web sites, block adverts, and save his bandwidth.
The proxy itself is predicated on mitmproxy moderately than reinventing the wheel. The greatest good points are, after all, from knocking pictures all the way down to dimension — since he’s solely going to be them on a tiny display screen, he can’t solely apply the higher compression of .webp moderately than the extra frequent .PNG and .JPEG, but additionally toss unneeded info by decreasing the decision. Exactly how a lot high quality to toss is left as much as the person person in a useful config.
Likewise, in the event you’re prepared to attend a bit longer for pages to load, you’ll be able to pressure each webpage to get the very best doable stage of compression — in any other case the server is just going to do this with ridiculous Java-heavy pages that completely want it. As a bonus, going by means of your private home server means this acts like a non-public VPN to assist shield your knowledge on the go. If you need the main points, try the GitHub hyperlink above or the video embedded under.
This challenge is explicitly about saving knowledge; it gained’t assist older {hardware} get on-line the best way the publicly hosted FrogFind search engine or private-hosted MacProxy servers do. If you actually need to escape the bloat of the fashionable web, a proxy can also help you go way back.
