Basic client and server cache - #227
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Root revalidation and groups seem like good optimizations. I'm not quite sure on the caching though. My initial thoughts:
|
Good point, I'll try a little test harness that runs this. Harder part might be capturing the intermittent aspect. Though I'd probably take significantly quicker responses on some responses, even at the cost of erratic loading.
One solution could be to use the client cache first then run a background refresh in the client loader so it's updated after the page is loaded? Just pushed a change. It's a high impact improvement, but I accept it might not be worth the complexity because it's only really working for cases where a user is revisiting an RFD. |
Some RFD site perf improvements. Cached navs are much much faster.
number:sha. Still sits behind the API's access check. Local mode is never cached. @augustuswm or @notpeter can you sense-check there's no security risk here?fetchGroups(~150–250ms). An invisible placeholder reserves the banner's height so there's no layout shift when it resolves.No auth changes: every first fetch of a document or list still goes through the API with the user's own token.
Comparison, top is fast cached version:
