Most websites should be served statically #
I've had this thought for quite some time, and it's that most websites don't need to be served dynamically. For example, most blogs that are powered by WordPress or Ghost will dynamically fetch the relevant content and build the page every time a visitor visits a URL.
There's nothing stopping sites from being built dynamically, using centrally stored content, and various templates that can be put together to build a complex website. It should just happen once, and then the generated static content can be efficiently served again and again, until the source content changes, and triggers it to be rebuilt.
This may sound a bit ironic, since my blog currently runs on Ghost, and serves content dynamically. Although, I am working towards a solution for that, by building my own static site generator, Arbok.
Yes, I'm sure some people have a caching mechanism installed, but I wouldn't say it's everyone, and it really masks a problem rather than fixing one. ↩︎
Another benefit of this, is that you can bundle together resources into a final
.htmlfile, such as any CSS styles. Which reduces the number of requests the browser needs to make when visiting your page. ↩︎
Although if you have a look at your browsers web inspector, you'll find that I've already done some work to reduce the size of my website. ↩︎