Name Description Size
destination
forbidden-method.any.js 366
multi-globals
request-bad-port.any.js 2090
request-cache-default-conditional.any.js 7374
request-cache-default.any.js 1400
request-cache-force-cache.any.js 2595
request-cache-no-cache.any.js 821
request-cache-no-store.any.js 1319
request-cache-only-if-cached.any.js 2594
request-cache-reload.any.js 1891
request-cache.js Each test is run twice: once using etag/If-None-Match and once with date/If-Modified-Since. Each test run gets its own URL and randomized content and operates independently. The test steps are run with request_cache.length fetch requests issued and their immediate results sanity-checked. The cache.py server script stashes an entry containing any If-None-Match, If-Modified-Since, Pragma, and Cache-Control observed headers for each request it receives. When the test fetches have run, this state is retrieved from cache.py and the expected_* lists are checked, including their length. This means that if a request_* fetch is expected to hit the cache and not touch the network, then there will be no entry for it in the expect_* lists. AKA (request_cache.length - expected_validation_headers.length) should equal the number of cache hits that didn't touch the network. Test dictionary keys: - state: required string that determines whether the Expires response for the fetched document should be set in the future ("fresh") or past ("stale"). - vary: optional string to be passed to the server for it to quote back in a Vary header on the response to us. - cache_control: optional string to be passed to the server for it to quote back in a Cache-Control header on the response to us. - redirect: optional string "same-origin" or "cross-origin". If provided, the server will issue an absolute redirect to the script on the same or a different origin, as appropriate. The redirected location is the script with the redirect parameter removed, so the content/state/etc. will be as if you hadn't specified a redirect. - request_cache: required array of cache modes to use (via `cache`). - request_headers: optional array of explicit fetch `headers` arguments. If provided, the server will log an empty dictionary for each request instead of the request headers it would normally log. - response: optional array of specialized response handling. Right now, "error" array entries indicate a network error response is expected which will reject with a TypeError. - expected_validation_headers: required boolean array indicating whether the server should have seen an If-None-Match/If-Modified-Since header in the request. - expected_no_cache_headers: required boolean array indicating whether the server should have seen Pragma/Cache-control:no-cache headers in the request. - expected_max_age_headers: optional boolean array indicating whether the server should have seen a Cache-Control:max-age=0 header in the request. 8812
request-clone.sub.html Request clone 2703
request-constructor-init-body-override.any.js 1103
request-consume-empty.any.js 3818
request-consume.any.js 6363
request-disturbed.any.js 4843
request-error.any.js 2243
request-error.js 1616
request-headers.any.js 6733
request-init-001.sub.html Request init: simple cases 5625
request-init-002.any.js 2632
request-init-003.sub.html Request: init with request or url 3630
request-init-contenttype.any.js 4813
request-init-priority.any.js 965
request-init-stream.any.js 5216
request-keepalive-quota.html Request Keepalive Quota Tests 5172
request-keepalive.any.js 707
request-reset-attributes.https.html 3080
request-structure.any.js 3718
resources
url-encoding.html Fetch: URL encoding 746