Skip to content

Commit

Permalink
fixed herokuapp only-if-cached issue
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed Sep 20, 2020
1 parent b9ef54a commit 587082a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ let Proxy = ({ProxyMiddleware, blockedSites, urlModify, httpprefix, serverName,
// remove nginx/cloudflare/pornhub related headers
if ((host.indexOf('twitter.com') === -1 && key.indexOf('x-') === 0) ||
key.indexOf('sec-fetch') === 0 ||
key.indexOf('only-if-cached') === 0 ||
key.indexOf('cf-') === 0) {
logSave(`remove key=${key},`)
proxyReq.removeHeader(key)
Expand Down

0 comments on commit 587082a

Please sign in to comment.