Static Website Hosting Platforms in 2023

Psst: we are hiring remote frontend developers and backend developers.

Illustration of a person holding a laptop and a person holding a picture of cat

Trends in every industry tend to cycle, and web development is no different. The biggest comeback in the past few years? Static websites!  However, the way we build them today has changed, and so has the way we host them. There are numerous static website hosting platforms available today, and we’ve gone over the most popular options to provide you with their advantages and disadvantages.

We don’t really call them Hosting Companies anymore, but PaaS: Platform-as-a-service because they allow developers to deploy sites quickly and easily (more on this a bit later).

Why is this important? To put it bluntly, just about any server can host static pages. BUT not all of them will be able to meet the needs and expectations of modern web development

Take the Jamstack approach to web development as an example. With the broader adoption, a couple of platforms were built with it in mind. The rest follow suit.

But I’m getting ahead of myself. Let’s define precisely what we mean by a static website, for starters.

[newsletter]Shift BUSINESS perspective to headless architecture.

Join 4500+ ecommerce businesses that are already growing their business with Crystallize newsletter.

What Is a Static Website?

General acceptance is that a static website is made of pre-built static HTML+CSS+JavaScript pages that don’t change between visits and that the server delivers to your browser exactly as stored once requested. Static websites don’t rely on databases, libraries, plugins, or frameworks and, as such, have blazing-fast loading times.

In direct opposition, we have dynamic websites that generate content according to various factors (e.g., your location, your time, new vs. returning visitors, etc.), i.e., the pages are rendered with each browser request.

To help illustrate, one of the biggest popular dynamic websites is Facebook and its news feed. On the other hand, a menu page uploaded to a restaurant's domain would be considered the most rudimentary static website.

Of course, because our needs today have changed, static pages and websites today have morphed into something slightly different. Go ahead and check my colleagues' in-depth explanation of what is a static site today.

[h3]Do You Mean Jamstack?

Yes and no. Because it delivers static files via a content delivery network (CDN), a Jamstack website would be considered a static one. But, Jamstack goes beyond regular static websites. To be more precise, Jamstack is a dynamically-generated static website.

This means that it can retrieve data from dynamic databases, which then becomes part of the static HTML, CSS, JavaScript, and media files ready for download from the CDN. It only retrieves data on non-user-facing servers, so the websites stay fast and secure.

What Are the Benefits of Having a Static Website?

[h3]High Security & Stability

Static websites are served from read-only filesystems. They don’t directly connect to any database or back-end, therefore minimizing any chance of hackers infiltrating them, stealing data, or tricking users via phishing or similar social engineering schemes.

To add to that, your visitors will always be looking at the last uploaded set of static files, minimizing downtime and increasing the stability of your website.

[h3]Fast Loading Speeds

Because static websites don’t rely on backend systems or database requests from the client side, they are extremely fast, just pushing out static files. These files can also be cached, further increasing the speed. Traditional static sites are stored on a web server, while modern sites are generated on a CDN, thus directly cached in multiple CDN locations on the edge of the world.

[h3]Cost-effectiveness & Scalability

While more traffic and more downloads of your static website files will increase the cost of maintaining your static website, hosting and delivering static files is much more cost-effective than maintaining a dynamic website connected to the backend: there is no CPU computation and not much RAM involved.

Furthermore, it’s much easier to scale your website when it’s static, in contrast to updating and adapting each moving part of the interconnected system we know as the dynamic website.

[h3]And Jamstack?

Jamstack allows web developers to claim the benefits static websites bring while integrating dynamic functionalities to make for a more engaging website.

Similarly, Jamstack generally allows more customizations than static or dynamic websites since you can choose exactly the features you need, no matter how simple or complex.

What's the Difference Between Platform and Hosting?

Let's clear up the difference between the different software, platform, and infrastructure (SPI) models of cloud computing first.

What's the Difference Between Platform and Hosting?

Today the term hosting, in most cases and for most devs, refers to traditional hosting services, the ones that come with storage, database, monitoring, networking, etc., and on which you have to install your components, configure them, etc., before deploying your application. Today term hosting is encompassed in Infrastructure As A Service (IaaS) solutions. Content Delivery Network (CDN) comes optional with IaaS.

Software As A Service (SaaS), on the other hand, encompasses a software licensing and delivery model in which software is licensed on a subscription basis and is centrally hosted, i.e., you don’t deploy anything when you use a service. Salesforce is one of the best examples of modern SaaS solutions. Then you also have a sub-division like Backend As A Service (BaaS), where the backend is the service. Does that ring a bell? This is exactly what Crystallize is.

A Platform As A Service (PaaS) is a bridge between them both. With a PaaS you don’t care about the infrastructure as it allows you to deploy your web application (which can be a static website or a more complex one).

You describe your architecture in a configuration file, and they take care of the underlying chores, installations, updates, patches, security, network, security, backup, etc. The main goal of a PaaS is to reduce DevOps, reducing your ToC (Total Cost of Ownership). In the case of using PaaS, usually, CDN is included. The content delivery network is made up of the origin server, where you upload your static files and widespread edge servers that deliver the files to your visitors.

It also encompasses CI/CD, or continuous integration/continuous delivery, the former of which ensures all changes are pushed to the testing environment as often as possible. In contrast, the latter ensures all those changes are delivered to the right people for testing before production. PaaS often supports cloud functions/node servers and a whole range of different services and functionalities.

A common misconception about PaaS is the concept of a server. To serve static files, you need a (web) server. With Next JS, for example, everything is generated in advance. True, but how about the /api folder? It’s dynamic, right? So you need a server to compute.

Two key concepts to understand with PaaS are the build and the runtime. The build is the initial step that builds your static files (with NextJS or similar). Once built, the build is deployed on the underlying architecture managed for you: that’s the runtime. The application is actually running.

And the PaaS providers have different approaches here to manage the runtime. To serve static files, it’s really easy, but for the dynamic part (the one that requires computations), some use ServerLess functions, and some keep a server running. That’s their magic.

Understanding the approaches of each one(s) will be a huge factor in determining which solution(s) will be the best for your website.

It’s interesting to mention that you don’t have to pick only one. In many situations, you can have your Frontend with Next JS that runs on Vercel and your Service API that runs on Plaform.sh or AWS ECS.

Top Static/Jamstack Hosting and Deployment Solutions

There are a whole bunch of available static website hosting platforms today, and covering and explaining all is out of the scope of this post. Here we’ll look at nine we've been using so far:

  1. Netlify
  2. Vercel
  3. Cloudflare Pages
  4. GitHub Pages
  5. Platform.sh
  6. Surge.sh
  7. Azure Static Web Apps
  8. Gatsby Cloud
  9. Static.app

[h3]Netlify

The company whose founder coined the term Jamstack. It makes perfect sense that it would be one of the leaders in the market. Netlify is the app for hosting and managing static websites with dynamic functionalities, for which they even offer built-in applications. 

Netlify is a complete CI/DN solution designed to work as part of a seamless Git-based developer workflow. Netlify is a framework-agnostic hosting service, and the team behind it is focusing on building out an ecosystem of services to support the Jamstack community.

Is a Free Plan available? Yes.

Website: https://www.netlify.com/

Netlify is a complete CI/DN solution designed to work as part of a seamless Git-based developer workflow.

[h3]Vercel

While most static website hosting platforms support a variety of frameworks and languages, if you opt for Next.js, you should look into Vercel, who created the framework.

Their platform is highly front-end friendly with advanced Git integrations that enable a streamlined CI/CD process with zero configuration necessary.

Is a Free Plan available? Yes.

Website: https://vercel.com/

Vercel + Next.js a powerful web dev combination.

[h3]Cloudflare Pages

Cloudflare Pages is the full CI/CD version of Cloudflare’s impressive content delivery network, designed with Jamstack in mind. 

It offers an effortless Git integration, relies on the Cloudflare edge network for stellar performance, and you can get dynamic functionality through integration with Cloudflare Workers. BTW they have the fastest edge functions we have tested. Lambda warmup + response was in the 50-80ms range, while Vercel was in the 300-500ms range. We talk about it in our Fast eCommerce with Cloudflare Using Next.js Livestream.

Is a Free Plan available? Yes.

Website: https://pages.cloudflare.com/

[h3]Github Pages

If you use Github and need to host a small website, Github Pages may be the right solution for you. Your static website is pushed straight from your Github repository, and the file changes are instantly deployed.  

However, note that some other solutions from the list may be better suited for more complex projects or projects that have to look top-notch (the available themes are a bit outdated).

Is a Free Plan available? Yes, for non-commercial projects.

Website: https://pages.github.com/

[h3]Platform.sh

Platform.sh is completely agnostic of the framework you use. Git-based in nature, the CI/CD is fully integrated.

With Platform.sh you can run more than static files. You can actually have services on the side like Databases, Application Cache, Message Brokers, Kafka, Solr, etc. And all the architecture is cloned for you in an instant to enable the CI/CD.

Web applications hosted by Platform.sh are usually more than web servers and static files. This makes it a great fit to host your Service Layer and your Static Sites on the same service. And because those architectures are sophisticated, they also take care of the 99.99% uptime and SLA with triple redundancy, CDN, image optimizations, and more.

Is a Free Plan available? Trial.

Website: https://platform.sh/

Platform.sh is completely agnostic of the framework you use. Git-based in nature, the CI/CD is fully integrated.

[h3]Surge.sh

Surge brands itself as static web publishing for front-end developers, which is pretty much it. It makes deploying projects to a CDN through Grunt, Gulp, and npm. 

Much of Surge comes for free, and it perfectly works with the build tool you already may be using, including the Grunt plugin, Gulp plugin, npm script, Git hooks, Jekyll, Node.js, Static Site Generators, CI services, and more. 

Note that Surge doesn’t come with a built-in CI/CD. 

Is a Free Plan available? Yes.

Website: https://surge.sh/

[h3]Azure Static Web Apps

The Azure static web platform also offers automated global content geo-distribution, along with native Github CI/CD workflows designed to streamline the development experience. 

A significant benefit of the Azure ecosystem is that many businesses are already on the Microsoft stack. Especially in cases where the organization does not take lightly on introducing a new service in their stack - read enterprise B2B organizations.

Is a Free Plan available? Yes.

Website: https://azure.microsoft.com/en-us/services/app-service/static/

[h3]Gatsby Cloud

As of writing this article Gatsby, the company behind Gatsby JS frontend framework and Gatsby Cloud service is bought by Netlify. A big question mark is above this service because we don't know if Netlify will leave it or integrate it into the existing offer. For now, we’ll keep this short info about it and watch closely to see how things change from now on.

So, Gatsby Cloud is the hosting service from the team behind the open-source Gatsby frontend framework. If you use the Gatsby framework, you have a purpose-built hosting platform available.

Is a Free Plan Available? Yes.

Website: https://www.gatsbyjs.com/

[h3]Static.app

With the upward trend of single-page websites and a greater emphasis on front-end development in recent times, the Static.app, a relatively new kid in town, is a natural choice to add here.

The code deployment process with static.app is incredibly simple, and it comes with a plethora of out-of-the-box capabilities that are simple to use and beginner-friendly. Excellent as a side hustle or quick proof-of-concept solution.

Is a Free Plan Available? Yes.

Website: https://static.app/

Comparing The Options

Obviously, much more influences your decision besides free plan availability and pricing, right? So, how does one go about comparing static hosting solutions?

Well, there are two ways. You make the same applications/website on each solution and test them, i.e., compare performance and build times results, packages, and pricing (used and offered). I've found this post from Kev Quirk to be a great example of that approach.

The second way, if you don’t have time to go through the offerings page by page, is to utilize one of many available review/comparison pages. I am especially fond of Bejamas’ comparison tool that allows you to pick and choose hosting platforms for a complete head-to-head feature comparison.

Bejams comparison tool

Static Pages and eCommerce

Wait, static pages for eCommerce? You have to be kidding. How do you handle the classic dynamic functionalities of an eCommerce website in modern-day static websites? I'm talking about the checkout process, cart setup, search functionalities, etc.

Well, thanks to the capabilities of modern browsers and the power of API microservices, most of the limitations often associated with static websites can be easily overcome.

Take a search, for example. The growing API economy offers many options for your static website, with Algolia and Elasticsearch leading the way.

The second problem is build time. Modern approaches (like Jamstack) require you to rebuild the whole website, however big or small the change you’ve made. That can be problematic for a website with thousands of pages.

This simply is not true anymore. For example, in Gatsby (static site generator), since version 3 Incremental Builds are the thing, i.e., the ability to rebuild only pages that are actually changed. Next.js has Incremental Static Regeneration (ISR) etc.

The old problems are being taken care of, and the rapidly evolving ecosystem and VC support aim to bring the static approach to web development of any kind to new heights.

One of the newest inventions in the static website space is the introduction of on-demand revalidation (in beta at the time of writing). With proper hooks from your eCommerce webhooks, you can play with the Time to live (TTL) of the cache and dynamic triggering cache revalidation for a sound event-based eCommerce cache strategy - when the product information changes.

This means you can generate a static page, let it live for a long time (cache time to live), and generate a new fast cached version when your pricing, stock, or product marketing copy changes. And all of these make your eCommerce static website possible, always fresh and super-fast.

Those approaches become really close (or better?) to what can be done with a good Event-Driven HTTP Caching model.

Takeaway

It looks like I sidetracked a bit. So, static might be hyped right now, but with PaaS and CDNs becoming much more than just a place for your website, the future does seem bright for static. Don't get me started with Edge computing.

Which one is the best? Nowadays, static websites can be used for all kinds of projects, eCommerce included. Most likely, your web application will have a dynamic part, and the PaaS you chose will have pros and cons based on what you’re trying to achieve.

For an enterprise-grade eCommerce project, you will probably have to decouple the front end, the search, and other services and have a service layer of your own that you will have to host as well. Whether you pick the same PaaS for your front and back end is totally up to you and really depends on the features, the project tech stack, scale, and budget for most companies and businesses.

We’d add a level of support in the free and paid tiers and community engagement in the decision-making process as well. It’s not the same if you have a problem and have to wait for 24 hours for someone to answer.

START building for FREE with Crystallize or schedule a 1-on-1 demo so we can show you how you can utilize the power of headless architecture on your preferred static host solution.