[Webkit-unassigned] [Bug 49672] Allow no-store resources to be used for back navigation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 17 13:27:00 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=49672
--- Comment #6 from Joseph Pecoraro <joepeck at webkit.org> 2010-11-17 13:27:00 PST ---
(In reply to comment #5)
> (From update of attachment 74133 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=74133&action=review
>
> r=me, but you should change some of the names
>
> > WebCore/loader/cache/CachedResource.h:124
> > + bool isHistoryOnly() const { return m_historyOnly; }
> > + void setHistoryOnly(bool b) { m_historyOnly = b; }
>
> Name these isStale() and setStale().
>
> > WebCore/loader/cache/CachedResource.h:260
> > + bool m_historyOnly : 1;
>
> Name this m_isStale.
I originally had that exact naming scheme, but decided against it. My reasoning
for switching to "history only" was that I thought "stale" was too similar to isExpired().
This comes into play when a resource is received with other headers, such as "Expires",
or "Cache-Control: max-age=..." and it outlives its freshness. I wanted to clearly
indicate this new state of a resource, which is why I chose the longer name.
With this in mind, would "stale" still be a better choice? It does match more closely
to the CachePolicy name (AllowsStale). If not, should I change the "allowsStale"
variable name to MemoryCache::requestResource be changed instead?
--
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