impress-2020/src/server/types
Matchu d3b9f72e67 Add stale-while-revalidate cache headers
Oh yay, I'm pleased with this! I hope it works out well!

stale-while-revalidate is an HTTP caching feature that gives us the ability to still serve relatively static content like item pages ASAP, while also making sure users generally see updates quickly.

The trick is that we declare a period of time where, you can still serve the data from the cache, but you should _then_ go re-fetch the latest data in the background for next time. This works on end users and on the CDN!

I've scanned the basic wardrobe and homepage stuff and brought them up-to-date, and gave particular attention to the item page, which I hope can be very very snappy now! :3

Note to self: Vercel says we can manually clear out a stale-while-revalidate resource by requesting it with `Pragma: no-cache`. I'm not sure it will listen to us for _fresh_ resources, though, so I'm not sure we can actually use that to flush things out in the way I had been hoping until writing this sentence lol :p
2021-02-02 19:07:48 -08:00
..
AppearanceLayer.js Add --resync-existing to cache-asset-manifests 2021-01-21 15:14:23 -08:00
ClosetList.js real trade data on the page! 2020-11-24 14:24:34 -08:00
Item.js Add stale-while-revalidate cache headers 2021-02-02 19:07:48 -08:00
MutationsForSupport.js support tool to edit usernames 2020-11-18 07:42:40 -08:00
Outfit.js Back links to Your Outfits, *if* it's yours 2021-01-17 08:04:21 -08:00
Pet.js use xmlrpc to load pets, not json.php 2020-10-22 23:22:04 -07:00
PetAppearance.js Add stale-while-revalidate cache headers 2021-02-02 19:07:48 -08:00
User.js Handle bugs in neopets username data 2021-01-19 13:55:25 -08:00
Zone.js refactor GQL typedefs/resolvers into separate files 2020-09-06 02:11:22 -07:00