Keep Resource::link_preload_ true even when served from the preload
cache When a blink::Resource is put into the preload cache by a link preload request, its `link_preload_` member is set to true. Before this CL, when a blink::Resource in the preload cache is matched with a request that itself is not a link preload, we reset the `link_preload_` member to false, obscuring the fact that the Resource was served from the preload cache to the consumer. After this CL, we stop resetting this member, so that when a non-link-preload request is matched with a blink::Resource from the preload cache, it can determine whether it was originally a preloaded resource or not. This is a preparation CL for implementing Preload + SRI to work with each other. The reason that a non-link-preload benefits from knowing whether it was served from the preload cache can be found here [1]. [1]: https://docs.google.com/document/d/1l8y_T3z-nb0smR9EVoZ3TeEI6rGzLw74vvzWzODsnDQ/edit#heading=h.rocm6cm98uhw R=kouhei@chromium.org, yhirano@chromium.org Bug: 677022 Change-Id: I890ee44cdd650b8459e5220f10a48d1d1192210b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1661314 Commit-Queue: Dominic Farolino <dom@chromium.org> Reviewed-by:Yoav Weiss <yoavweiss@chromium.org> Reviewed-by:
Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Cr-Commit-Position: refs/heads/master@{#669969}
Showing
Please register or sign in to comment