[Webkit-unassigned] [Bug 89230] Add support for application cache prefer-online mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 19:58:58 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=89230





--- Comment #2 from huangxueqing <huangxueqing at baidu.com>  2012-08-02 19:58:58 PST ---
As some web developer's feedback, it's weired that we must refresh twice to make browser display the newest page, the first fetch master entry from local, then update caches in backend, and until the second refresh load the newest resource.
So, i definitly agree and interest this feature.

I suggest implementation:
* add a member in ApplicationCache named m_cacheMode default as "fast";
* if prefer-online listed in SETTINGS of manifest, set m_cacheMode as "prefer-online";
* for m_cacheMode with "prefer-online":
  * We always fetch resources from network even if resources cached in local;
  * If we fetch resources failed from network, we not only check fallback but also  explicit and master entry.

If everyone think fine, I will attach a patch to review.

thanks.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list