Jacob Hoffman-Andrews

Results 400 comments of Jacob Hoffman-Andrews
trafficstars

I just tested stale-while-revalidate, and it does make the page nicely available when the network is offline, at least in Chrome. Proposal: Let's add `Cache-Control: max-age=0, stale-while-revalidate=N` for all versioned...

A little hiccup: Iron doesn't seem to support stale-while-revalidate, and doesn't allow setting custom strings for the cache-control header: https://docs.rs/iron/0.6.1/iron/headers/enum.CacheDirective.html

I like that idea but for a different reason: it would mean we could set a Last-Modified header on the page based on its build dates, since the versions list...

We could move the "platforms" dropdown into the crate dropdown, freeing up some space for a standalone "versions" dropdown. As an FYI / addition: the "docs.rs crate page" also has...

> number of URLs targeting a specific platform and URLs targeting a specific version. > Is it worth adding you think? I think not. It would not help decide on...

How about time-based? The 10 most recently published versions, with a "see all" link at the bottom that goes to the crate details page? For that matter, the [crate details...

I think it used to be the case that on mobile, clicking the crate dropdown would take you to the crate page, which has all the same functionality. I tested...

> In these cases I prefer optimistic / simple approaches Same! > when we get a rate-limit error we retry after some time. One question with this: will we get...

> Another approach (a pessimistic one) would be probably: > > collect paths to invalidate in a separate table > once a minute (or something like that), push the collected...

Hi Karan, According to https://github.com/hiviah/https-everywhere-checker/issues/13, there is already an implementation of the needed code in RuleTrie, but I accidentally bypassed it in #4.