3 ms·
Static site generators are superior to server-side includes/dynamic server frameworks + caching in some aspects (in other aspects, dynamic server frameworks w/c
by jnbiche 6y ago
Static site generators are superior to server-side includes/dynamic server frameworks + caching in some aspects (in other aspects, dynamic server frameworks w/caching are better).
One example: there are security advantages of static site compilation, since it's typically done off-server, on the developer's machine or a CI build machine. This means they can dramatically reduce the attack surface, either by having a server with a single HTTP server running, or (more often) using a service like S3 or Github Pages.
Statically-rendered React pages isn't a recent innovation, even in the context of static site generators. They are just the latest iteration in a long-line of such static site generators, starting most prominently with generators such as Jekyll and Hyde back in the late 2000s.