We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02bc7ae commit 0bd05d7Copy full SHA for 0bd05d7
src/index.ts
@@ -6,6 +6,8 @@ export default {
6
const { pathname } = new URL(request.url);
7
const ttlString = request.headers.get('X-Proxy-TTL');
8
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.
11
const isProxyRequest =
12
request.method === 'POST' &&
13
request.headers.get('content-type') === 'application/json' &&
0 commit comments