Intent to Experiment: CacheStorage Code Cache Hint

218 views
Skip to first unread message

Ben Kelly

unread,
Nov 8, 2019, 12:02:56 PM11/8/19
to blink-dev
wande...@chromium.org

See the public design doc.


None yet. I would like to collect data with our partner before we decide whether it's worth taking on the work to standardize this kind of hinting mechanism. This experiment will allow participating sites to provide hints to cache_storage that full code cache should not be generated in a service worker install event. The hint will be communicated as a header on the Response being stored. This is a change to an unspecified optimization in chrome. Full code cache generation during the install event was added in M64. It is only observable indirectly through changes in timing and disk quota usage. There are clear trade-offs to generating full code cache.  Partners have told us it clearly improves load times.  The binaries are quite larger, however, and also lead to increased disk and runtime memory usage.

We have a partner interested in providing hints so that they can gain the loading benefits for critical scripts and avoid the binary bloat for non-critical scripts.

If the data shows a benefit we will investigate standardizing a hinting mechanism.

M80 to M82 None. There are no plans for additional devtools support in this trial. It is possible to see when code cache is used via the performance timeline tab. Yes No. Code caching is currently considered a browser optimization and not addressed by any spec. https://chromestatus.com/feature/5685099288854528  

Yoav Weiss

unread,
Nov 8, 2019, 8:19:10 PM11/8/19
to Ben Kelly, blink-dev
Interesting case of running an origin trial before design & implementation!

Validation here before investing in the feature makes perfect sense.

LGTM

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK7rkMiPhapMSHQ9NNoHRkhTTzNJrzPF6UiPJddOmwgUpjxKqg%40mail.gmail.com.

Ben Kelly

unread,
Apr 10, 2020, 10:54:28 AM4/10/20
to Yoav Weiss, blink-dev
FYI, my partner was unable to participate in this trial due to competing priorities.  I plan to let this trial expire and pick it up again when they have time later this year.  Also note, the expiration will be at the end of M81 since M82 was removed from the release schedule.

Ben Kelly

unread,
Jun 25, 2020, 4:11:55 PM6/25/20
to Yoav Weiss, blink-dev
Hello Blink API Owners.  I'd like to restart this origin trial now that I have partners ready to test with it.  AIUI I don't need to wait for a new release, so it would start in the tail end of M83 through M86.

Yoav Weiss

unread,
Jun 26, 2020, 12:46:05 AM6/26/20
to Ben Kelly, blink-dev
Still LGTM! :)
Reply all
Reply to author
Forward
0 new messages