Skip to content

Commit

Permalink
Delete more headers in worker.
Browse files Browse the repository at this point in the history
  • Loading branch information
awaitlink committed Sep 29, 2022
1 parent dda8ffa commit 7d0a1e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions worker/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ async function respond(origin, pathname, version, platform, extension, isAGzip)

const newResponse = new Response(response.body, options);

newResponse.headers.delete("cf-cache-status");
newResponse.headers.delete("age");
newResponse.headers.delete("last-modified");

newResponse.headers.delete("x-cache");
newResponse.headers.delete("via");
newResponse.headers.delete("date");
Expand Down

0 comments on commit 7d0a1e8

Please sign in to comment.