Repository navigation
Conversation
This test is meant to support the discussion in whatwg/fetch#590. The test accesses a URL that returns an integer that gets incremented with each request (starting with 0). The test preloads it once, and then loads it twice. In Firefox, the test returns 0,0 In Chrome, the test returns 0,1 (preload is used for one request) In Safari, the test returns 1,2 (preload makes an unused request)
yoavweiss
reviewed
Sep 27, 2021
| const serveUrl = './resources/inc.py' | ||
| function uuidv4() { | ||
| return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => | ||
| (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) |
Contributor
There was a problem hiding this comment.
https://wicg.github.io/uuid/ could've been interesting here, but I don't think it's broadly supported.
Contributor
Author
|
I updated the test cases to also include script and image loading, and to try several combinations of cache headers from the server (can possibly add more). ^^ @pmeenan |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This test is meant to support the discussion in
whatwg/fetch#590.
The test accesses a URL that returns an integer that gets incremented
with each request (starting with 0).
The test preloads it once, and then loads it twice.
In Firefox, the test returns 0,0
In Chrome, the test returns 0,1 (preload is used for one request)
In Safari, the test returns 1,2 (preload makes an unused request)