Chromium Code Reviews
Descriptionpredictors: Key the resource prefetcher by URL, not navigation.
The resource prefetcher is currently keyed by navigation. It is now
keyed by URL, which is the only piece of data used from the
navigation. Aside from less coupling, this opens the door to trigger
prefetches before a navigation starts.
This commit also removes the possibility of having two concurrent
prefetches running for the same host. Aside from being rare, this is not
desirable as a lot of resources are expected to be shared across two
URLs on the same domain. Thus, a prefetch B can unintentionally use a
resource prefetched by a prefetch A from the same domain, negating the
prefetch (since LOAD_PREFETCH resources can only be used once without
revalidation).
BUG=631966
Committed: https://crrev.com/72fec99e143cd8fa697e04ad32bc6be4dc9c6c8e
Cr-Commit-Position: refs/heads/master@{#420898}
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||