Skip to content

Commit 0bd05d7

Browse files
committed
Update index.ts
1 parent 02bc7ae commit 0bd05d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default {
66
const { pathname } = new URL(request.url);
77
const ttlString = request.headers.get('X-Proxy-TTL');
88

9+
// Currently API usage only incurs costs for POST requests, and these also
10+
// tend to be the slowest. It may not be desirable to cache GET requests.
911
const isProxyRequest =
1012
request.method === 'POST' &&
1113
request.headers.get('content-type') === 'application/json' &&

0 commit comments

Comments
 (0)