4 ms·
There is no such thing as a static website
- outsomnia 5y agoThe article builds it up like we're going to hear E = mc2 but it's just the facile observation that the transport layer has some state. Static sites are very difficult to knock over, there's no pile of PHP or Java or whatever and no database to sneak SQL into and no serverside tools to maintain. Their "source" lives on and is backed up from the developer infrastructure, and is merely deployed out to the server; if it blew up you could deploy it somewhere else in seconds and point the DNS at that instead. That is the major reason people use them.
- dane-pgp 5y agoThe terminology of "static" and "dynamic" may not be helpful any more, but there is still an important architectural distinction between the user executing the website code in their browser (in the case of a Single Page Application), and code being run by another computer on every page fetch (or at least every cache miss). From a security perspective this distinction matters, because if there's no code runtime/interpreter on the webserver, then the runtime/interpreter can't get hacked by a malicious request (or a flood of requests), while shipping all your frontend source code to the user might have security implications too. This decision also impacts costs and latency.