Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Issue 12086021: Allow automatic use of stale cache entries if site is unreachable. (Closed)

Created:
7 years, 10 months ago by Randy Smith (Not in Mondays)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, gavinp+disk_chromium.org, gavinp
Visibility:
Public.

Description

Allow automatic use of stale cache entries if site is unreachable. BUG=2204 R=rvargas@chromium.org

Patch Set 1 #

Patch Set 2 : Fixed redirect behavior. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -1 line) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/load_flags_list.h View 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.h View 1 4 chunks +11 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 7 chunks +110 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Randy Smith (Not in Mondays)
Ricardo: This change is obviously not ready for review (look at all the debug code ...
7 years, 10 months ago (2013-01-28 19:24:31 UTC) #1
Randy Smith (Not in Mondays)
Ricardo: I think I figured out how to do redirects properly. Now I'm *very* curious ...
7 years, 10 months ago (2013-01-29 20:39:04 UTC) #2
rvargas (doing something else)
I'm sorry for the delay. I'm curious as to why do we want to start ...
7 years, 10 months ago (2013-01-29 22:04:28 UTC) #3
Randy Smith (Not in Mondays)
On 2013/01/29 22:04:28, rvargas wrote: > I'm sorry for the delay. No worries; thanks for ...
7 years, 10 months ago (2013-01-29 22:36:41 UTC) #4
Randy Smith (Not in Mondays)
Ricardo: What would you think of moving this discussion over to the bug? The level ...
7 years, 10 months ago (2013-01-29 22:40:15 UTC) #5
rvargas (doing something else)
7 years, 10 months ago (2013-01-30 03:12:44 UTC) #6
On 2013/01/29 22:40:15, rdsmith wrote:
> Ricardo: What would you think of moving this discussion over to the bug?  The
> level we're talking at seems more appropriate to design/requirements than
code.

I'm totally fine with moving to the bug.

Play with it: that's totally reasonable, and that's what I thought you were
doing :)

Extension: No, I don't mean to reimplement it. If there's no API to do that,
that would mean adding the API to actually load stuff from the cache with the
right flags. Yeah, mobile is an issue because the lack of extensions on the
platforms were this would be most useful...

no-store: I would actually expect a kind of random distribution of no-store
resources on otherwise cacheable pages, but I have no data to back that up.

Overall my main concern is the detection/retry at the resource granularity (and
at the lowest possible layer). Even if you want transparent, mode-less
operation, I would have expected an upper layer to detect the desired condition
and reissue the proper requests with the new flags. I guess I don't understand
clearly the model of starting loading a page and ending with some resources from
the cache and some from the net, if the connection goes on and off. I don't know
what to say that to the user.

In other words, "load from the net if possible, otherwise from the cache" is
something that makes sense at the page level, but I'm not so sure it does at the
request level. If I know that I'm offline, why keep retrying the 80 requests
that this page has instead of showing everything quickly?

Powered by Google App Engine
This is Rietveld 408576698