jyn

Results 723 comments of jyn
trafficstars

Also, rustdoc heavily uses relative links for documentation, I don't see a good way to change that since it doesn't know the absolute URL it will be used with.

> Changing the cache expiry would help, however that requires the user to manually toggle offline mode in their browser That seems to defeat the point of caching :( Glancing...

I'd strongly prefer for docs.rs to remain a static site first and foremost, and especially remain usable with JavaScript disabled. I'm fine with JS adding features _on top_, but the...

Let me approach this from a different angle (I really like the framing in https://internals.rust-lang.org/t/pre-rfc-user-namespaces-on-crates-io/12851/96 to discuss things as problems to solve and not solutions to implement). docs.rs currently is...

@GuillaumeGomez are you saying that this breaks once `latest` no longer redirects to another page (https://github.com/rust-lang/docs.rs/pull/1527)? I think we can avoid that by just having a much shorter cache expiration...

> I had high hopes of precaching a whole crate / the whole stdlib, but fetching that many files individually (30,847 for the stdlib) was prohibitively slow. This should be...

> Advantage for the Cache-Control approach: much easier to deploy and reason about. This is very tempting :laughing: it sounds like you're volunteering to do much of the work, which...

> I see somebody has already thought of the problem, and that link takes you to a search page across 0.20. That's pretty neat! Maybe that's adequate? Haha, yeah I...

That said, I'm fairly familiar with service workers from working at Cloudflare so if that sounds fun I say go for it :grin:

> During the ~dozen seconds you spend looking at the page, the browser will refresh the cache from origin, so by the time you reload there should be a fresh...