FormidableLabs/nextjs-sanity-fe

increase cache lifetime

Closed this issue · 0 comments

Currently, all the cache lifetimes are set to 10 minutes. This is nice, but that means:

  • most times people open the page they are getting a copy served from origin rather than cached
  • slower response times occur because of the origin / cold start hit
  • most all performance metrics will be slower

I suggest once we further test caching and purging, we increase the cache lifetime to 24 hours or so. That way, when the site is loaded it's much more likely to be cached content. Heck, we could even increase the cache to 100 days or something like that if we're confident in how the purging works.