benefits.md (2532B)
1 --- 2 title: The Benefits of Static Site Generators 3 linktitle: The Benefits of Static 4 description: Improved performance, security and ease of use are just a few of the reasons static site generators are so appealing. 5 date: 2017-02-01 6 publishdate: 2017-02-01 7 lastmod: 2017-02-01 8 keywords: [ssg,static,performance,security] 9 menu: 10 docs: 11 parent: "about" 12 weight: 30 13 weight: 30 14 sections_weight: 30 15 draft: false 16 aliases: [] 17 toc: false 18 --- 19 20 The purpose of website generators is to render content into HTML files. Most are "dynamic site generators." That means the HTTP server---i.e., the program that sends files to the browser to be viewed---runs the generator to create a new HTML file every time an end user requests a page. 21 22 Over time, dynamic site generators were programmed to cache their HTML files to prevent unnecessary delays in delivering pages to end users. A cached page is a static version of a web page. 23 24 Hugo takes caching a step further and all HTML files are rendered on your computer. You can review the files locally before copying them to the computer hosting the HTTP server. Since the HTML files aren't generated dynamically, we say that Hugo is a *static site generator*. 25 26 This has many benefits. The most noticeable is performance. HTTP servers are *very* good at sending files---so good, in fact, that you can effectively serve the same number of pages with a fraction of the memory and CPU needed for a dynamic site. 27 28 ## More on Static Site Generators 29 30 * ["An Introduction to Static Site Generators", David Walsh][] 31 * ["Hugo vs. WordPress page load speed comparison: Hugo leaves WordPress in its dust", GettingThingsTech][hugovwordpress] 32 * ["Static Site Generators", O'Reilly][] 33 * [StaticGen: Top Open-Source Static Site Generators (GitHub Stars)][] 34 * ["Top 10 Static Website Generators", Netlify blog][] 35 * ["The Resurgence of Static", dotCMS][dotcms] 36 37 38 ["An Introduction to Static Site Generators", David Walsh]: https://davidwalsh.name/introduction-static-site-generators 39 ["Static Site Generators", O'Reilly]: https://github.com/gohugoio/hugoDocs/files/1242701/static-site-generators.pdf 40 ["Top 10 Static Website Generators", Netlify blog]: https://www.netlify.com/blog/2016/05/02/top-ten-static-website-generators/ 41 [hugovwordpress]: https://gettingthingstech.com/hugo-vs.-wordpress-page-load-speed-comparison-hugo-leaves-wordpress-in-its-dust/ 42 [StaticGen: Top Open-Source Static Site Generators (GitHub Stars)]: https://www.staticgen.com/ 43 [dotcms]: https://dotcms.com/blog/post/the-resurgence-of-static