Guide · Explainer

What Is a Static Website?

A static website is pre-built HTML, CSS, and JS delivered from a CDN - no server, no database, just fast pages served exactly as uploaded.

GuyUpdated 31 Aug 20267 min read

What is a static website?

A static website is a set of HTML, CSS, and JavaScript files that a server delivers unchanged to every visitor - no database query, no server-side rendering, just the files exactly as uploaded.

Contrast this with a dynamic website, which generates its HTML on request - think PHP, Rails, or Next.js server rendering - based on a database, user session, or query parameter.

my-site.upfling.site
Hello, world
This is a static website. The browser received this file exactly as it was uploaded.
A static HTML file served directly from the CDN - no server processing.

How static websites work

Here is what happens when someone visits a static site:

  1. 1A developer writes HTML, CSS, and JS (or an AI tool generates it).
  2. 2The files are uploaded to a hosting service.
  3. 3The host copies them to a CDN's edge nodes around the world.
  4. 4A visitor's browser requests the URL.
  5. 5The nearest edge node returns the exact file - no computation, no waiting for a database.
Already have files? Drop them in now.
Free, no account needed

Static vs dynamic websites

StaticDynamic
Page sourcePre-built filesGenerated per request
Server needed?No (CDN only)Yes (app server + DB)
SpeedVery fast (edge cache)Slower (round-trip)
Security surfaceTiny (just files)Larger (DB, sessions)
Hosting costVery lowHigher
InteractivityClient-side JS onlyFull server logic
Good forPortfolios, docs, AI-generated sitesE-commerce, social, CMS
A static site can still be interactive - JavaScript runs in the browser just fine (forms, animations, API calls). "Static" refers to how the files are delivered, not how the page feels to use.

Advantages of static websites

Speed
CDN edge delivery means no database round-trip. Time to first byte is typically under 50 ms from a nearby edge node. Google's Core Web Vitals reward this directly.
Security
No server-side code to exploit, no database to breach. The attack surface is essentially the CDN itself - there is nothing else running.
Cost
Serving pre-built files is cheap. Many hosts, including Upfling, offer a free tier sufficient for personal sites and portfolios.
Reliability
Nothing to crash. A file server either returns the file or it does not - there is no application-layer state to corrupt.

What static websites are used for

Static websites cover a wide range of real use cases:

How to host a static website

  1. 1
    Create your files
    Write HTML, CSS, and JS yourself, export from a website builder, or have an AI generate it for you.
  2. 2
    Upload to Upfling
    Drop a single HTML file or a folder (ZIP). Upfling detects the homepage automatically.
  3. 3
    Share your URL
    You get a live *.upfling.site subdomain with SSL included. No account needed to start.
Free, no account needed. Drop your files now.
Free, no account needed

Frequently asked questions