|
|
|
|
|
by gchq-7703
1299 days ago
|
|
> I want to cache a guide until it changes, but update the exchange rates every few hours. We've found that NextJS's Incremental Static Regeneration[0] hits the sweet spot for when we have needed to do this. Specifying a regeneration time allows us to say 'this data can be at most X seconds old' but if thousands of users hit a URL at once only one request is made. [0] https://nextjs.org/docs/basic-features/data-fetching/increme... |
|
However server-side generation would mean that exchange rates are cached along with the page by Google and archive.org. An old version of the page would show old exchange rates.
I care a great deal about letting users consume the content even if the website goes down, either through archive.org, Google Cache, CloudFlare, Pocket or their own archives.