Skip to content

Commit

Permalink
remove custom header after copying
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Nov 7, 2024
1 parent a474d88 commit 2882f8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions private-website-cache/src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export default {
});
}

// Remove the custom header since we've processed it
modifiedResponse.headers.delete('X-Cache-Info');
return modifiedResponse;
} catch (e) {
console.error('Failed to parse cache info:', e);
Expand Down

0 comments on commit 2882f8f

Please sign in to comment.