1<!doctype html> 2<html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 6 7 <meta name="viewport" content="width=device-width"> 8 9 10 11 12 13 <meta name="keywords" content="Amazon, Hugo, Performance, Security, Speed"> 14 15 16 17 18 <meta name="google-site-verification" content="Mkq_9uJVZOHV_kEheLXBKI-CDrUOOCgUMytrbPUhnY8"> 19 <meta name="msvalidate.01" content="89377D1E58763891A88639AF52B837D8"> 20 21 <title>Moving to a Static Website, part 4: Benefits · samaxes</title> 22 23 24 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700%7CLato:400,400i,700%7CSource+Code+Pro"> 25 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> 26 <link rel="stylesheet" href="/css/normalize.css"> 27 <link rel="stylesheet" href="/css/styles.css"> 28 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/solarized-dark.min.css"> 29 <link rel="stylesheet" href="/css/custom.css"> 30 31 32 <link rel="canonical" href="https://samaxes.com/2016/03/static-site-benefits/"> 33 34 35 <link rel="icon" href="/favicon.ico"> 36 <link rel="apple-touch-icon" href="/apple-touch-icon.png"> 37 38 39 40 41 42 <link rel="publisher" href="https://plus.google.com/+samaxes"> 43 </head> 44 <body> 45 <header class="site-header"> 46 <div class="center-block"> 47 48 <div class="site-title"> 49 <a href="https://samaxes.com/">samaxes</a> 50 </div> 51 52 53 54 <ul class="main-menu"> 55 56 <li><a href="https://samaxes.com/about/">{ About }</a></li> 57 58 <li><a href="https://samaxes.com/contact/">{ Contact }</a></li> 59 60 </ul> 61 62 </div> 63 </header> 64 65 66<div class="container clearfix"> 67 <main class="content"> 68 <article class="post"> 69 <nav> 70 <a class="btn home" href="https://samaxes.com/" title="Back to home">« Back to home</a> 71 </nav> 72 73 <header class="post-info"> 74 75 <h1><a href="https://samaxes.com/2016/03/static-site-benefits/" title="Moving to a Static Website, part 4: Benefits">Moving to a Static Website, part 4: Benefits</a></h1> 76 77 Posted on 78 <span class="post-meta"> 79 <time datetime="2016-03-04">2016-03-04</time> 80 81 · Tagged in 82 83 <a href="https://samaxes.com/tags/amazon">amazon</a>, 84 85 <a href="https://samaxes.com/tags/hugo">hugo</a>, 86 87 <a href="https://samaxes.com/tags/performance">performance</a>, 88 89 <a href="https://samaxes.com/tags/security">security</a>, 90 91 <a href="https://samaxes.com/tags/speed">speed</a> 92 93 94 </span> 95</header> 96 97 <p>This is the last part of a four-part blog post covering my move from WordPress to Hugo, a static website generator. This post outlines some of the benefits from moving to a static website and to <a href="https://aws.amazon.com/" target="_blank">Amazon AWS</a>.</p> 98 99<p>If you haven’t read the first three parts, you may find them at <a href="https://samaxes.com/2016/02/static-site-from-wordpress-to-hugo/" target="_blank">Moving to a Static Website, part 1: From WordPress to Hugo</a>, <a href="https://samaxes.com/2016/02/static-site-hosting/" target="_blank">Moving to a Static Website, part 2: Hosting</a> and <a href="https://samaxes.com/2016/02/static-site-automated-deployment/" target="_blank">Moving to a Static Website, part 3: Automated deployment with Wercker</a>.</p> 100 101<p></p> 102 103<hr /> 104 105<h2 id="site-speed">Site speed</h2> 106 107<p>Speed is considered by many as the <a href="http://carsonified.com/blog/business/fred-wilsons-10-golden-principles-of-successful-web-apps/" target="_blank">#1 principle for successful web apps</a>.</p> 108 109<p>The benefits from moving from <a href="https://wordpress.org/" target="_blank">WordPress</a> to <a href="https://gohugo.io/" target="_blank">Hugo</a> are evident:</p> 110 111<div> 112 113<figure class="side-by-side"> 114 <a href="/img/static-site-benefits/pagespeed-insights-desktop-wordpress-digitalocean.png"> 115 <img src="/img/static-site-benefits/pagespeed-insights-desktop-wordpress-digitalocean.png" alt="PageSpeed Insights for the desktop with WordPress hosted on DigitalOcean." /> 116 </a> 117 118 <figcaption> 119 <p> 120 PageSpeed Insights for the desktop with WordPress hosted on DigitalOcean. 121 122 123 124 </p> 125 </figcaption> 126 127</figure> 128 129 130<figure class="side-by-side"> 131 <a href="/img/static-site-benefits/pagespeed-insights-desktop-hugo-amazon.png"> 132 <img src="/img/static-site-benefits/pagespeed-insights-desktop-hugo-amazon.png" alt="PageSpeed Insights for the desktop with Hugo hosted on Amazon AWS." /> 133 </a> 134 135 <figcaption> 136 <p> 137 PageSpeed Insights for the desktop with Hugo hosted on Amazon AWS. 138 139 140 141 </p> 142 </figcaption> 143 144</figure> 145 146</div> 147 148<div> 149 150<figure class="side-by-side"> 151 <a href="/img/static-site-benefits/pagespeed-insights-mobile-wordpress-digitalocean.png"> 152 <img src="/img/static-site-benefits/pagespeed-insights-mobile-wordpress-digitalocean.png" alt="PageSpeed Insights for the mobile with WordPress hosted on DigitalOcean." /> 153 </a> 154 155 <figcaption> 156 <p> 157 PageSpeed Insights for the mobile with WordPress hosted on DigitalOcean. 158 159 160 161 </p> 162 </figcaption> 163 164</figure> 165 166 167<figure class="side-by-side"> 168 <a href="/img/static-site-benefits/pagespeed-insights-mobile-hugo-amazon.png"> 169 <img src="/img/static-site-benefits/pagespeed-insights-mobile-hugo-amazon.png" alt="PageSpeed Insights the the mobile with Hugo hosted on Amazon AWS." /> 170 </a> 171 172 <figcaption> 173 <p> 174 PageSpeed Insights the the mobile with Hugo hosted on Amazon AWS. 175 176 177 178 </p> 179 </figcaption> 180 181</figure> 182 183</div> 184 185<div> 186 187<figure class="side-by-side"> 188 <a href="/img/static-site-benefits/webpagetest-wordpress-digitalocean.png"> 189 <img src="/img/static-site-benefits/webpagetest-wordpress-digitalocean.png" alt="Website's performance with WordPress hosted on DigitalOcean." /> 190 </a> 191 192 <figcaption> 193 <p> 194 Website's performance with WordPress hosted on DigitalOcean. 195 196 197 198 </p> 199 </figcaption> 200 201</figure> 202 203 204<figure class="side-by-side"> 205 <a href="/img/static-site-benefits/webpagetest-hugo-amazon.png"> 206 <img src="/img/static-site-benefits/webpagetest-hugo-amazon.png" alt="Website's performance with Hugo hosted on Amazon AWS." /> 207 </a> 208 209 <figcaption> 210 <p> 211 Website's performance with Hugo hosted on Amazon AWS. 212 213 214 215 </p> 216 </figcaption> 217 218</figure> 219 220</div> 221 222<h2 id="latency">Latency</h2> 223 224<p>A content delivery network (CDN) is a collection of web servers distributed across multiple locations to deliver content more efficiently to users. The server selected for delivering content to a specific user is typically based on a measure of network proximity. For example, the server with the fewest network hops or the server with the quickest response time is chosen.</p> 225 226<p>The following images illustrate the latency benefits from using <
226a href="https://aws.amazon.com/cloudfront/" target="_blank">CloudFront</a> (Amazon’s CDN):</p> 227 228<div> 229 230<figure class="side-by-side"> 231 <a href="/img/static-site-benefits/ping-wordpress-digitalocean.png"> 232 <img src="/img/static-site-benefits/ping-wordpress-digitalocean.png" alt="Ping response time for a site hosted on DigitalOcean UK without a CDN." /> 233 </a> 234 235 <figcaption> 236 <p> 237 Ping response time for a site hosted on DigitalOcean UK without a CDN. 238 239 240 241 </p> 242 </figcaption> 243 244</figure> 245 246 247<figure class="side-by-side"> 248 <a href="/img/static-site-benefits/ping-hugo-amazon.png"> 249 <img src="/img/static-site-benefits/ping-hugo-amazon.png" alt="Ping response time for a site hosted on Amazon AWS using CloudFront CDN." /> 250 </a> 251 252 <figcaption> 253 <p> 254 Ping response time for a site hosted on Amazon AWS using CloudFront CDN. 255 256 257 258 </p> 259 </figcaption> 260 261</figure> 262 263</div> 264 265<h2 id="security">Security</h2> 266 267<p>A free benefit of moving to Amazon AWS is the ability to very easily generate SSL/TLS certificates to add support for HTTPS.</p> 268 269<p>Currently, <a href="https://aws.amazon.com/certificate-manager/" target="_blank">ACM</a> supports the RSA-2048 encryption and SHA-256 hashing algorithms which are considered secure by <a href="https://www.ssllabs.com/ssltest/" target="_blank">SSL Server Test (from Qualys SSL Labs)</a>:</p> 270 271<div> 272 273<figure > 274 <a href="/img/static-site-benefits/ssl-test.png"> 275 <img src="/img/static-site-benefits/ssl-test.png" alt="Analysis of the configuration of the SSL/TLS web server." /> 276 </a> 277 278 <figcaption> 279 <p> 280 Analysis of the configuration of the SSL/TLS web server. 281 282 283 284 </p> 285 </figcaption> 286 287</figure> 288 289</div> 290 <footer> 291 <ul class="share-buttons"> 292 <li>Share this article:</li> 293 <li> 294 <a href="https://www.facebook.com/sharer/sharer.php?u=https%3a%2f%2fsamaxes.com%2f2016%2f03%2fstatic-site-benefits%2f" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;" title="Share on Facebook"><i class="fa fa-facebook-square fa-lg"></i></a> 295 </li> 296 <li> 297 <a href="https://twitter.com/share?text=Moving%20to%20a%20Static%20Website%2c%20part%204%3a%20Benefits&url=https%3a%2f%2fsamaxes.com%2f2016%2f03%2fstatic-site-benefits%2f" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" title="Tweet this article"><i class="fa fa-twitter fa-lg"></i></a> 298 </li> 299 <li> 300 <a href="https://plus.google.com/share?url=https%3a%2f%2fsamaxes.com%2f2016%2f03%2fstatic-site-benefits%2f" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;" title="Share on Google+"><i class="fa fa-google-plus fa-lg"></i></a> 301 </li> 302 <li> 303 <a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3a%2f%2fsamaxes.com%2f2016%2f03%2fstatic-site-benefits%2f&title=Moving%20to%20a%20Static%20Website%2c%20part%204%3a%20Benefits" onclick="window.open(this.href, 'linkedin-share', 'width=600,height=494');return false;" title="Share on Linkedin"><i class="fa fa-linkedin fa-lg"></i></a> 304 </li> 305 </ul> 306</footer> 307 308 </article> 309 <section class="comments"> 310 <h2>Comments</h2> 311 <div id="disqus_thread"></div>
312<script type="text/javascript"> 313 var disqus_shortname = 'samaxes'; 314 var disqus_identifier = 'https:\/\/samaxes.com\/2016\/03\/static-site-benefits\/'; 315 var disqus_title = 'Moving to a Static Website, part 4: Benefits'; 316 var disqus_url = 'https:\/\/samaxes.com\/2016\/03\/static-site-benefits\/'; 317 318 (function() { 319 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; 320 dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; 321 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); 322 })(); 323</script>
323 324<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> 325<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> 326 </section> 327 </main> 328 <aside class="author"> 329 <img class="profile-image" src="/img/profile-image.jpg" srcset="/img/profile-image.jpg 1x, /img/[email protected] 2x, /img/[email protected] 3x" alt="Samuel Santos" /> 330 <p class="name">by 331 <strong>Samuel Santos</strong></p> 332 <p class="address"></p> 333 <p class="link"></p> 334 <ul class="social"> 335 336<li><a href="https://twitter.com/samaxes" target="_blank" title="Twitter"><i class="fa fa-twitter"></i></a></li> 337 338 339 340<li><a href="https://www.linkedin.com/in/samaxes" target="_blank" title="Linkedin"><i class="fa fa-linkedin"></i></a></li> 341 342 343 344<li><a href="https://github.com/samaxes" target="_blank" title="Github"><i class="fa fa-github"></i></a></li> 345 346 347 348 349 350 351 352 353 354 355<li><a href="https://samaxes.com/index.xml" target="_blank" title="RSS" rel="alternate" type="application/rss+xml"><i class="fa fa-rss"></i></a></li> 356 357 </ul> 358
358<script async src="//cdn.carbonads.com/carbon.js?serve=CKYIK23N&placement=samaxescom" id="_carbonads_js"></script>
358 359</aside> 360 361</div> 362 363 <footer class="main-footer"> 364 <div class="container clearfix"> 365 <a href="https://samaxes.com/index.xml" target="_blank" title="RSS" rel="alternate" type="application/rss+xml"><i class="fa fa-rss fa-lg"></i></a> 366 <p> 367 © 2022 Samuel Santos<br/> 368 Licensed under a <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">Creative Commons Attribution 4.0 International license</a>.<br/> 369 Powered by <a href="https://gohugo.io" target="_blank">Hugo</a>. 370 </p> 371 </div> 372 </footer> 373 374 375 376
376<script>
vendor: 359 bytes, lines 376-382
376 377 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 378 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 379 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 380 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 381 382 ga('create', '
382UA-268112-1
vendor: 18 bytes, lines 382-383
382', 'auto'); 383
383ga('require', 'linkid'); 384 ga('send', 'pageview'); 385 </script>
385 386 387 388
388<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
388 389
389<script>hljs.initHighlightingOnLoad();</script>
389 390 </body> 391</html> 392
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.