Everything is server-rendered (output is stored in Netlify Blobs to cache and compare for future requests) and it would take long if your page generation logic takes long.
So SSG would work as follows:
During the build, page would be generated
It would be moved to Netlify Blobs before deployment
When the page is requested, it would be handled by the SSR Function
The generated page would be fetched from Blobs
Next.js will determine the cache freshness
Since you’re saying it’s a static file, I assume there’s no revalidation of any sort that’s happening. In this case, the cached file would be served as it is.
@hrishikesh Hi! Yes you’re right, cache mechanism is working, still sometimes it seems that the response is not immediate (like a revalidating process is on the way). Subsequent requests, though, are fast; I expect that, since I’m using SSG with no revalidate, that response are “immediate” (with vercel this happens), but not with netlify So if nexts 15 has no static files, why vercel responses are always fast, and netlify sometimes no?
And by the way, I don’t know where you say that nextjs has no static files anymore, because if I use SSG, after the build, I see the html static files It seems that the Netlify implementation of nextjs is not ideal
Also, you didn’t answer to this → So if nexts 15 has no static files, why vercel responses are always fast, and netlify sometimes no?
I understand that I’m using the free tier so that’s fine, but as I understand, there’s no performances difference between free accounts and paid accounts so it isn’t either that the problem; it actually seems that the netlify nextjs runtime is not optimized 100%