pln-planning-tools / Starmap

Roadmap Planning Tool
https://starmap.site
Other
20 stars 8 forks source link

Implement vercel caching for our server-side functions. #335

Closed SgtPooki closed 1 year ago

SgtPooki commented 1 year ago
SgtPooki commented 1 year ago

The Vercel Edge Network cache caches your content at the edge in order to serve data to your users as fast as possible.

Static caching is automatic for all deployments. This means that no changes need to be made to headers. You get the best performance possible out of the box with zero configuration required.

whizzzkid commented 1 year ago

@SgtPooki I am contemplating the value of adding this, with the sevice-worker now, I think having a second cache would not help a lot. Unless the consideration is if multiple users are browsing the same starmap they would be reading from the cache, but in a distributed environment the value could go down immensely.

The updates sent out to the users could also be slower. I think we should wait and see if folks are still having a hard time.

SgtPooki commented 1 year ago

That's a valid concern but i still want to attempt to implement this and get some timings. The work to add/remove this is trivial. (Like 3 lines)