CacheStorage: Support opting out of full cache cache based on headers.
This CL adds the CacheStorageCodeCacheHint blink runtime feature. When enabled it makes cache_storage look for a header when responses are put on disk. If the header specifies a value of "none" then the current behavior of generating full code cache from the install event is disabled for that specific response. This blink feature is marked as experimental. The current header name is "x-CacheStorageCodeCacheHint", but its configurable via a field trial param. This will allow us to adjust the header if we later choose a better name. Currently code caching is not specified. It is mainly only observable by web content through quota size differences and timing. Bug: 1007272 Change-Id: I21f90927f6ed59529c2efe8995cbdd855a87f3ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1881191 Commit-Queue: Ben Kelly <wanderview@chromium.org> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Cr-Commit-Position: refs/heads/master@{#713029}
Showing
Please register or sign in to comment