3 ms·
I had the idea to write a HTTP proxy which parses all traffic and caches CDN results on a local network and use those instead, but this might be even better.
by kissgyorgy 6y ago
I had the idea to write a HTTP proxy which parses all traffic and caches CDN results on a local network and use those instead, but this might be even better.
- netsharc 6y agoHuh, isn't that just a normal caching HTTP proxy like Squid? If 2 sites both use jquery.cdn/1.3.4/jquery.min.js, your browser should have it in the cache, or alternatively your caching proxy server would just serve you the bits it already downloaded earlier.
- dan15 6y ago> Huh, isn't that just a normal caching HTTP proxy like Squid? I don't think caching HTTP proxies are as useful any more now that most sites are using HTTPS. They can't easily cache content from origins that use TLS due to the encryption, unless you install a root certificate that allows the proxy to spoof any origin. You could connect to the proxy via HTTP which then uses HTTPS to the origin, but then you'd get mixed content warnings (loading scripts via HTTP when the page is loaded via HTTPS).