r/programming • • Nov 24 '16

Let's Encrypt Everything

https://blog.codinghorror.com/lets-encrypt-everything/
3.5k Upvotes

508 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 24 '16

[deleted]

29

u/Badabinski Nov 24 '16

Counterpoint: HTTPS has a massive overhead when compared to HTTP because it makes caching impossible. Grabbing something over the LAN is at least an order of magnitude faster than grabbing something over the internet.

1

u/Klathmon Nov 24 '16

HTTPS doesn't remove the ability for local caching (where local is either your PC, your LAN, or your ISP).

It just ensures that the person you are connected to is who they say they are.

In fact every time you go to google.com you are pointing toward an edge server (there are many servers that serve up Google.com all over the planet).

12

u/Badabinski Nov 24 '16 edited Nov 24 '16

HTTPS absolutely does remove the ability to cache at any level above the local PC. The only way to cache HTTPS at a LAN or ISP layer is to MITM the traffic. This has serious implications for a lot of people:

  • An iOS update drops at a large trade show. Every iPhone connected to the wifi proceeds to download it. Even a gigabit pipe will fold if 1000+ people are downloading a 100+ megabyte file. iOS updates are served via HTTP and are cacheable so you can throw a transparent proxy cache in the middle and avoid that issue.

  • Retail stores have shitty, slow wifi. Things like YouTube decimate that pipe. YouTube is 100% HTTPS, and it doesn't matter one bit if content is being served from a nearby CDN. The bottleneck is the last mile. Google won't give you a certificate so you can cache YouTube in your store.

  • Linux package managers are always HTTP, but don't have issues with tampering. Packages get signed with GPG keys, caches can cache, and everyone is happy. You can be sure that the package you're downloading is legitimate.

I'm all for HTTPS for basically everything, but people need to be realistic about the network that content is served over. Caching is really, really important and HTTPS fucks that straight to hell.

→ More replies (1)