forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache SW: Serve version with most responses (ampproject#6475)
* Cache SW: Serve version with most responses I want to avoid the situation where `/v0/some-rarely-used-components.js` serves up a very old RTV, when we have multiple files of the newer version that could be served. This heavily weights the main binary, places a small weight on the first requested file, and treats all other responses as normal. The version with the max score is what we’ll serve. * Comments * Update tests
- Loading branch information
1 parent
34ced04
commit a38c6ff
Showing
2 changed files
with
127 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters