Skip to content

Commit

Permalink
Add speculation rules improvements for Chrome 121 (#22262)
Browse files Browse the repository at this point in the history
* Add speculation rules improvements for Chrome 121

* Add No-Vary-Search support data

* Remove "source": "document"

* Add relative_to key
  • Loading branch information
chrisdavidmills authored Feb 28, 2024
1 parent fbd1b18 commit af9a3a3
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 0 deletions.
101 changes: 101 additions & 0 deletions html/elements/script.json
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,74 @@
"deprecated": false
}
},
"eagerness": {
"__compat": {
"description": "<code>eagerness</code> key",
"support": {
"chrome": {
"version_added": "121"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"expects_no_vary_search": {
"__compat": {
"description": "<code>expects_no_vary_search</code> key",
"support": {
"chrome": {
"version_added": "121",
"partial_implementation": true,
"notes": "Supported for <code>prefetch</code> only."
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"prefetch": {
"__compat": {
"description": "<code>prefetch</code> key",
Expand Down Expand Up @@ -787,6 +855,39 @@
}
}
},
"relative_to": {
"__compat": {
"description": "<code>relative_to</code> key",
"support": {
"chrome": {
"version_added": "121"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"requires": {
"__compat": {
"description": "<code>requires</code> key",
Expand Down
41 changes: 41 additions & 0 deletions http/headers/No-Vary-Search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"http": {
"headers": {
"No-Vary-Search": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/No-Vary-Search",
"support": {
"chrome": {
"version_added": "121",
"partial_implementation": true,
"notes": "Supported for navigation prefetch cache only."
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}
40 changes: 40 additions & 0 deletions http/headers/Speculation-Rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"http": {
"headers": {
"Speculation-Rules": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Speculation-Rules",
"spec_url": "https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header",
"support": {
"chrome": {
"version_added": "121"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}

0 comments on commit af9a3a3

Please sign in to comment.