Debloat The Internet With a Self-Hosted Compressing Proxy

It’s no secret that the size of webpages has been slowly — or not so slowly — creeping up over the years. Does a simple website need to span multiple floppy disks? [PortalRunner’s] doesn’t — or rather, he doesn’t want to burn that much of his limited mobile data. So he built a self-hosted HTTPS proxy to compress images and websites, block ads, and save his bandwidth. The proxy itself is based on mitmproxy rather than reinventing the wheel. The biggest gains are, of course, from knocking images down to size — since he’s only going to be looking at them on a tiny screen, he can not only apply the better compression of .webp rather than the more common .PNG and .JPEG, but also toss unneeded
…