simpleinfra icon indicating copy to clipboard operation
simpleinfra copied to clipboard

doc.rust-lang.org: immutably cache static files

Open jsha opened this issue 2 years ago • 0 comments

In https://github.com/rust-lang/simpleinfra/pull/108, @Mark-Simulacrum rightly pointed out that it would be better for rustdoc's static files to have hashes in the name, so we can confidently cache them immutably, knowing that if the contents ever change, the filename will also change.

That work is done in https://github.com/rust-lang/rust/issues/98413, and all of stable, beta, and nightly docs have been built with that change. Also as part of the change, all static files are served from a separate directory, static.files/, so we know that any files in that directory may be cached immutably.

jsha avatar Feb 04 '23 21:02 jsha