Why isn’t my site serving assets via HTTP/2?
The front-end chapter of The Ruby on Rails Performance Apocrypha urges us to enable HTTP/2 in our Cloudfront distributions. It turns out HTTP/2 is enabled by default on Cloudfront distributions since around September 2007. Which is neat, we should be taking advantage of it already. So I check that it’s ticked in our distribution (it is) and then load some assets via Firefox. And it says in the header that they’re being served with HTTP/1.1. What the heck. Chrome seems to be happily fetching assets from our Cloudfront distribution over HTTP/2. Why isn’t Firefox?
It’s not that, since Chrome is working. And it turns out, so is Firefox, if I use an incognito window.
Not storing secrets in your ENV
Things I Read
- RuboCoping with legacy: Bring your Ruby code up to Standard
- Testing Performance
- Finished Rebuilding Rails. Released the resultant project, handcar.
- Started reading The Ruby on Rails Performance Apocrypha by Nate Berkopec.