forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1753730 - Add EarlyHintPreloader to load 103 Early Hint responses…
… into the cache r=necko-reviewers,ckerschb,dragana,kershaw Currently only same origin requests are preloaded and preloads in the secure context. This may change in the future to match W3C decisions and Chromes behavior. Also only images get preloaded. This will change in the future to cover asset types. Currently the anchor isn't parsed correctly yet[1], so this will be fixed in a future patch. On non-2xx responses of the main document all ongoing preloads get canceled. Already completed preloads don't get affected and are in the cache. It is currently untested whether unused preloads don't have side effects. Another future patch should cover adding the preload to the devtools. [1]: https://datatracker.ietf.org/doc/html/rfc8288#section-3.2 Differential Revision: https://phabricator.services.mozilla.com/D137885
- Loading branch information
Showing
10 changed files
with
502 additions
and
16 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
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
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
Oops, something went wrong.