impress-2020/api
Matchu e56c5d9a9c Use stale-while-revalidate for /api/validPetPoses
Idk I was surprised to notice that /api/validPetPoses wasn't cached by the Vercel CDN… but I guess that makes sense, because it's only allowed to be an hour old, and client caches hold onto it, so I suppose it makes sense for the CDN cache to not bother.

But in practice, that means users loading the site are pretty _likely_ to see /api/validPetPoses taking its full load time, which can be up to 500ms.

So, I'm offering this additional cache hint, to be willing to serve /api/validPetPose responses up to a week old while reloading the latest data. My hope is that the cache algorithm is much more excited about holding onto that, and that it makes the 500ms delay very _rare_ in practice!
2021-05-13 01:05:34 -07:00
..
allWakaValues.js Fix Honeycomb trace labels for API endpoints 2021-04-23 12:31:50 -07:00
graphql.js some Honeycomb fixes 2020-08-17 01:16:35 -07:00
outfitImage.js Fix Honeycomb trace labels for API endpoints 2021-04-23 12:31:50 -07:00
sendFeedback.js Fix Honeycomb trace labels for API endpoints 2021-04-23 12:31:50 -07:00
uploadLayerImage.js Fix Honeycomb trace labels for API endpoints 2021-04-23 12:31:50 -07:00
validPetPoses.js Use stale-while-revalidate for /api/validPetPoses 2021-05-13 01:05:34 -07:00