Skip to content

Commit

Permalink
bail early on 304 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
tevanoff committed Dec 15, 2023
1 parent 8816a75 commit 3d53d71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/resource-archive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ class Watcher {
return;
}

// There's no reponse body for us to archive on 304s
if (responseStatusCode === 304) {
await this.clientSend(request, 'Fetch.continueRequest', { requestId });
return;
}

const requestUrl = new URL(request.url);

this.firstUrl ??= requestUrl;
Expand Down

0 comments on commit 3d53d71

Please sign in to comment.