You can now host static sites on Cloudflare

Cloudflare has leveraged its Workers platform to host static sites on its Edge caching servers, removing the need for a web hosting service.

Cloudflare
Cloudflare now allows static sites using it Workers platform.

Cloudflare joins Amazon Web Services (AWS) with the ability to host static websites on a content delivery network (CDN), skipping the need for a traditional web hosting provider. AWS has allowed the ability to host sites on S3, its Simple Cloud Storage Service‎, for several years. However, the lack of content delivery options and the need to configure certificates through CloudFront, have kept webmasters from moving their static sites to AWS.

Ashley Williams, Systems Engineer at Cloudflare, says you can use Wrangler CLI to deploy entire websites directly to Cloudflare Workers and Workers KV.

If you can statically generate the assets for your site, think create-react-app, Jekyll, or even the WP2Static plugin, you can deploy it to our entire global network, which spans 194 cities in more than 90 countries.

Workers KV is where assets like images and HTML pages are stored, and Cloudflare Workers maintain a manifest of all the assets. When webmasters make changes to their site, they can use Wrangler to update both the files and the manifest.

Publishing Assets
Publishing assets to Cloudflare using Wrangler

When visitors want to view the site, it communicates with the manifest, and the manifest delivers the site to the browser. Since the manifest manages the site in real-time, it automatically updates the Cloudflare Cache, so files are always up-to-date.

Serving Assets
How Cloudflare serves sites using the Manifest

Wrangler doesn’t have a graphic user interface (GUI) yet, which means webmaster will need to use a command-line interface (like Apple’s Terminal app) to interact with Cloudflare’s services. Webmasters will also need experience using Cloudflare Workers. Cloudflare may be planning to make a GUI for deploying websites, but it wasn’t mentioned in the announcement.

Editor’s Note: I’m interested in using this service, so if I’m able to successfully deploy and update static sites, I’ll probably publish a howto guide on Coywolf Pro.

Jon is the founder and Managing Editor of Coywolf. He is a serial entrepreneur with over 25 years of experience in web development, SaaS, internet strategy, and digital marketing. Follow @henshaw

Never miss an important story – Subscribe to Newsletter