You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/fixtures/wpt/fetch/http-cache/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,11 +62,11 @@ Possible members of a request object:
62
62
- expected_response_headers - An array of `[header_name_string, header_value_string]` representing
63
63
headers to check the response for. See also response_headers.
64
64
- expected_response_text - A string to check the response body against. If not present, `response_body` will be checked if present and non-null; otherwise the response body will be checked for the test uuid (unless the status code disallows a body). Set to `null` to disable all response body checking.
65
+
- url_params - A string of url parameters that will be appended to the end of the url, separated by "&" and without leading "&".
65
66
66
67
Some headers in `response_headers` are treated specially:
67
68
68
69
* For date-carrying headers, if the value is a number, it will be interpreted as a delta to the time of the first request at the server.
69
70
* For URL-carrying headers, the value will be appended as a query parameter for `target`.
- If `params` is set to true, `expect=("dispatch" "uuid")` must be specified.
10
+
Otherwise:
11
+
- The same HTTP Cache will be used by other tests, which are supposed
12
+
to be distinguished by uuid.
13
+
- The test utility cannot get the server's states because UA will use the HTTP
14
+
Cache instead of sending a new request to server to ask for the latest state.
15
+
- Do not test not_cached cases and cached cases within one test. Test infra
16
+
checks the number of requests and responses without considering if the
17
+
previous responses should be served from cache or not.
18
+
*/
19
+
vartests=[
20
+
{
21
+
name: "When params is set to true, URL differs only by their parameters (other than `dispatch` and `uuid`) should not be cached as different entries.",
0 commit comments