diff --git a/testing/web-platform/tests/speculation-rules/prefetch/no-vary-search/prefetch-single.https.html b/testing/web-platform/tests/speculation-rules/prefetch/no-vary-search/prefetch-single.https.html
new file mode 100644
index 000000000000..543b46c535ae
--- /dev/null
+++ b/testing/web-platform/tests/speculation-rules/prefetch/no-vary-search/prefetch-single.https.html
@@ -0,0 +1,282 @@
+
+
Prefetched response including No-Vary-Search headers is used during navigation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/speculation-rules/prefetch/resources/utils.sub.js b/testing/web-platform/tests/speculation-rules/prefetch/resources/utils.sub.js
index a306b8cea981..ea70939aff08 100644
--- a/testing/web-platform/tests/speculation-rules/prefetch/resources/utils.sub.js
+++ b/testing/web-platform/tests/speculation-rules/prefetch/resources/utils.sub.js
@@ -94,6 +94,12 @@ class PrefetchAgent extends RemoteContext {
document.head.append(meta);
}, [referrerPolicy]);
}
+
+ async getDeliveryType(){
+ return this.execute_script(() => {
+ return performance.getEntriesByType("navigation")[0].deliveryType;
+ });
+ }
}
// Produces a URL with a UUID which will record when it's prefetched.