-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc.rust-lang.org: add caching headers for static content #82286
Comments
Adding a separate topic here because it's closely related: We can achieve a significant decrease in file size by enabling Brotli compression, which is an option in CloudFront: https://aws.amazon.com/about-aws/whats-new/2020/09/cloudfront-brotli-compression/ Brotli has been supported in major browsers since 2016: https://en.wikipedia.org/wiki/Brotli search-index1.50.0.js is currently served as 272,247 gzip bytes, but it could be served as 140,170 brotli bytes.
|
Per https://caniuse.com/brotli, IE browser doesn't support this header. But since it's just a header, I don't think any incompatibility problems here with IE. However, changing the header shall be done by rust-infra/docs.rs team, not rustdoc it self as rustdoc have to serve pages from local files. |
Opened issues on rust-lang/simpleinfra instead, so closing this. Thanks for the guidance! |
Steps to reproduce:
Expected result:
Most resources are cached and do not hit the network.
Actual result:
Many objects require a network fetch, but get a 304 Not Modified. These should be served with long caching headers.
Current headers:
The text was updated successfully, but these errors were encountered: