leerob / leerob.io

✨ My portfolio built with Next.js, Tailwind, and Vercel.

Home Page:https://leerob.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question

lishine opened this issue · comments

Hi,
About your post going-serverless-next-firebase-now.
Isn't the cold start at Now is a problem for SEO and user experience?

Hey @lishine 👋

By utilizing proper caching, having a cold start isn't a problem. For example, on my site, I cache all the static assets (including JS and CSS) here and the cache will be invalidated when they change.

If you'd like to see an example of a Next.js + Now monorepo site, check out BeyondHQ. You'll see there's no issues with SEO or UX.

Glad to read your reply!
So Now has cache config for routes, great to know!
My site is on GitHub pages lishine.github.io, github cache-control fixed at 10minutes.
But thinking about it. You mean actually that the cold start is solved by CDN caching. Which is revelation for me.
It is great, so for static site cold start not an issue.
While cold start is an issue for dynamic sites - the ones with server because you cannot cache the html. And for api that is serverless on lambdas.

Yep, absolutely! I hope that answers your question. Let me know if you have any others and I'll try my best to help 🎉