DescriptionAvoid double download for late discovered link preload resources.
`<link rel=preload>` based resources are could result in a double download
if they weren't discovered by the parser by the time parsing ended. If they
we're not used by that time, they were removed from mem cache entirely.
That behavior is compatible with preloadScanner discovered resources, but
it is not compatible with rel preload, which is intended to be used on
exactly the resources that are not present in markup and therefore will
be discovered late.
This CL fixes the issue, by avoiding to remove from memcache resources
that are there due to `<link rel=preload>`.
BUG=579914
Committed: https://crrev.com/7deab7b0ed91ae7e453919ceef37e1b6074b7c1a
Cr-Commit-Position: refs/heads/master@{#371061}
Patch Set 1 #Patch Set 2 : Permit memcache removal when ResourceFetcher is destroyed #
Total comments: 6
Patch Set 3 : review comments #Patch Set 4 : Added comment #Patch Set 5 : rebase #
Messages
Total messages: 10 (3 generated)
|