3 ms·
I've never heard the term SSG before. Apparently stands for "static site generating" and is a `next.js` thing. No, hacker news is not a static site. It just ma
by traverseda 3y ago
I've never heard the term SSG before. Apparently stands for "static site generating" and is a `next.js` thing.
No, hacker news is not a static site. It just makes use of caching HTML on unchanged pages, and as I understand it that cache is often bypassed for logged in users. This is why sometimes when hackernews is overloaded you can still view the site in private browsing, since you're not logged in it hits the cache instead of generating a page for you.
A cache is not a static site, although maybe next.js is redefining the term, I don't know. Get off my lawn.
- michaelmior 3y agoSSG long predates Next.js. It was by no means the first, but I wrote something that I think could be called a SSG (not the term I used at the time) back in 2010 while the first release of Next.js wasn't until 2016. [0] https://michael.mior.ca/blog/designing-an-offline-cms/ https://michael.mior.ca/blog/designing-an-offline-cms/
- traverseda 3y agoSure, static html sites have existed forever, but I don't know when the term "SSG" was popularized. I assume it was pretty recently all things considered.
- la_fayette 3y agoOk, it seems I mixed up the acronyms, I thought SSG stands for server-side generated. What I actually mean is, that there is a difference between SSR with react, which requires some kind of rehydration on the client, in contrast to a website generated by, e.g., PHP on the server, which doesn't require this. The PHP website doesn't require the client to rehydrate and produces less load on the client. With the disadvantage, that a subsequent page view requires again a full load, while the SSR loaded react page, doesn't require that. I didn't check the HN code yet, but it feels like a server- side generated website and not a SSR delivered react (or similar js framework) website...
- traverseda 3y agoServer side rendering has meant basically just generating HTML and serving it for a long time.