Skip to content

Commit

Permalink
Merge pull request #925 from pfeiffer/preloader-rename-header
Browse files Browse the repository at this point in the history
Rename header for preload requests
  • Loading branch information
Alberto Fernández-Capel authored Aug 25, 2023
2 parents 889ebe7 + 361e805 commit 43cf629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/drive/preloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Preloader {
}

try {
const response = await fetch(location.toString(), { headers: { "VND.PREFETCH": "true", Accept: "text/html" } })
const response = await fetch(location.toString(), { headers: { "Sec-Purpose": "prefetch", Accept: "text/html" } })
const responseText = await response.text()
const snapshot = PageSnapshot.fromHTMLString(responseText)

Expand Down

0 comments on commit 43cf629

Please sign in to comment.