A follow-up to 53e18fd82a1530d601b240aab2048a1f6a4ab475, this PR attempts to further enable caching by Cloudfront, since requests for assets are still hitting our node server. Hopefully after this PR, only the first requests to these will hit node, and the rest will be served by Cloudfront directly.
Success! We’re now hitting Cloudfront directly on first request after the cache has been warmed (about 20-40ms from my machine) and memory cache from that point forward (0-5ms on my machine). 🎉
A follow-up to 53e18fd82a1530d601b240aab2048a1f6a4ab475, this PR attempts to further enable caching by Cloudfront, since requests for assets are still hitting our node server. Hopefully after this PR, only the first requests to these will hit node, and the rest will be served by Cloudfront directly.