logoalt Hacker News

mannyv • yesterday at 7:44 PM • 3 replies • view on HN

I use Fastly, but I also use straight http for origin. Why? Because it’s marginally faster and I don’t really care about the security of my static content. And less processing is always better. And as a bonus I don’t have to worry about my origin showing up in some certificate list scraper.

If I was handling HIPAA data it would be different.


Replies

clhodapp • yesterday at 7:52 PM

How does this not put your users at about as much risk as if they connected to your site over unencrypted HTTP end-to-end? Someone can MITM the connection from Fastly back to your content and replace it with things that are not your static content.

➕ show 2 replies
bastawhiz • yesterday at 8:01 PM

It's marginally faster when the cache is cold and there's no open connection. But you also lose out on the benefits of H2, with header compression and the ability to pull many files concurrently over a single connection. The performance difference is almost certainly either exactly a wash or slightly slower with H1, unless you have so few files that no connection stays open for very long anyway: multiple TCP handshakes and header size is going to dominate the single TLS negotiation. Server to server, the cost of encrypting and decrypting is almost unmeasurable compared to network cost.

hnav • yesterday at 7:57 PM

you know that an on the-path attacker can poison your fastly cache, right?