]> git.ardis.lu - ardislu.dev/commitdiff
Remove edge caching logic
authorArdis Lu <ardisglu@gmail.com>
Thu, 21 Jul 2022 03:01:07 +0000 (20:01 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 21 Jul 2022 03:01:07 +0000 (20:01 -0700)
After manual tests, these options don't appear to have any effect

functions/api.js

index f6c2fb30d0e90a0b3487b5b8732279acd59ed012..15e58571504b6153769bad16d36cd94564691e1e 100644 (file)
@@ -11,13 +11,5 @@ export async function onRequestGet({ request, env }) {
 
   const token = await getGoogleAuthToken(env.EMAIL, env.PRIVATE_KEY, env.SCOPES);
 
-  return fetch(queryUrl, {
-    cf: {
-      cacheEverything: true,
-      cacheTtl: 86400
-    },
-    headers: {
-      Authorization: `Bearer ${token}`
-    }
-  });
+  return fetch(queryUrl, { headers: { Authorization: `Bearer ${token}` } });
 }
This page took 0.033846 seconds and 4 git commands to generate.