documentation menu

How deploys work

Hash locally, upload only what is missing, flip one pointer — why deploys are atomic and rollback is instant.

read as markdown

Pages uses a “git-push” style deploy: the work of figuring out what changed happens on your machine, so the network only ever carries new bytes.

  1. Hash locally. The CLI walks your directory, computes the SHA-256 of each file, and builds a manifest mapping every path to its content hash.
  2. Ask what’s missing. It sends the manifest up; the service replies with just the hashes it hasn’t seen before.
  3. Upload only those. The CLI uploads only the missing blobs, addressed by hash. Unchanged files — frameworks, libraries, images shared with earlier deploys — are never re-sent.
  4. Publish atomically. Once every blob is present, the manifest is stored as the new release. Going live is a separate step: the site’s active-version pointer flips to that release in one operation. That flip is the whole of both deploying and rolling back, which is why a staged release costs nothing to keep and a rollback is instant.

Every file is stored once by its content, and nothing is ever mutated in place, which is what makes deploys atomic and rollbacks free.

Consequences worth knowing

The version id is a content hash. It is computed over the whole manifest — every path and hash, plus the release’s settings. Two releases with the same id are the same release. Re-deploying an unchanged folder uploads nothing.

A staged release is fully uploaded. “Staged” is not “partially deployed” — every byte is already in place and the only thing missing is the pointer. That is why promoting a preview cannot fail halfway, and why the preview a reviewer approved is byte-identical to what goes live.

Deleting a release does not delete files. Blobs are shared across releases and across sites, so removing a release removes a manifest. Storage is charged on distinct content, not on the number of releases pointing at it.

There is no cache to purge. Every response carries an ETag that is the file’s content hash, and how long a browser may keep it depends on the name:

  • HTML, and any file whose name doesn’t look fingerprinted, is sent with Cache-Control: public, max-age=0, must-revalidate. The browser asks again on every visit, an unchanged file answers 304 Not Modified with no body, and a redeploy is picked up on the next request.
  • A file whose name looks fingerprinted — the hashed bundles build tools emit, like index-BBChOLGI.css or main.a1b2c3d4.js — is sent with public, max-age=31536000, immutable: a year, never revalidated, because a build that changes it gives it a new name.

A name looks fingerprinted when a part of it other than the extension looks like a hash: a long, random-looking run of letters and digits. Ordinary words don’t count.

Replacing a file whose name looks like a hash? Rename it. A browser that has seen it may keep it for a year, so if you upload different content under the same name, returning visitors may keep seeing the old copy. Give the new one a new name instead.

/_one9x/ is reserved

Everything under /_one9x/ is answered by One9x rather than by your files — on the platform subdomain, on preview URLs and on your custom domains alike. That is what lets widgets such as forms and comments work on whatever host your site is being served from, with no configuration.

The practical consequence is that files in a top-level _one9x/ folder are left out of every deploy. The deploy itself succeeds: the drop zone says so in its summary (“N dotfiles or _one9x/ paths left out”) and the CLI drops them silently, the same way it treats dotfiles. Rename the folder if your generator produces one.

Only the top level is reserved. A _one9x folder further down — say docs/_one9x/x.html — deploys and serves normally.

The one case that fails loudly is a client that builds its own manifest rather than using the CLI: that gets a 400 naming the path, because a tool that constructed the manifest deliberately should be told, not quietly edited.