Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When proxying an asset file from Amazon S3 or Google Storage, we previously ignored important headers such as - Content-Type - Content-Length - Cache-Control We also ignored the storage service's HTTP response, effectively assuming 200, and just blindly passed on the content body. In the case of any errors or redirects, we would interpret that (empty or meaningless) body as the asset itself. Instead, we now proxy those HTTP headers and treat any non-200 as an error.
- Loading branch information