| commit | cf1f8ef1ba9bcfff07a8159c43777e18f878c2cf | [log] [tgz] |
|---|---|---|
| author | Adam Rice <ricea@chromium.org> | Mon Jul 28 06:20:18 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 28 06:20:18 2025 |
| tree | e0bbdbd5f2053d614b05a4c3789ada247f00e6ae | |
| parent | 9ca42466c5dc197bb0c47c378efab9ce6d250bcb [diff] |
Implement HttpCacheNoVarySearchApplyToExternalHits feature Add the "HttpCacheNoVarySearchApplyToExternalHits" feature which causes the net::HttpCache::OnExternalCacheHit() method to consult the NoVarySearchCache. If an entry is found in the NoVarySearchCache then both URLs will be reported as used to the backend. This is useful because in cases like an a response that cannot be revalidated we will fall back to the URL from the original request. The backend will ignore requests to mark non-existent keys as used. This also has the side benefit that the NoVarySearchCache will consider the entry to be freshly used and is less likely to evict it. OnExternalCacheHit() is called via mojo when a subresource is used from the Blink memory cache. Bug: 433551601,382394774 Change-Id: Idce27a6c7e434798b3ca169a1f5076626e382c78 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6780173 Commit-Queue: Adam Rice <ricea@chromium.org> Reviewed-by: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1492604}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.