Cache Notes
Deployment

Let filenames carry the release

Why content-addressed assets simplify a release.

Give changed content a new URL

A filename that includes a content fingerprint separates one version from the next. The HTML can refer to the new filename while the previous asset remains available for an older page. Keep the previous files long enough for that page to finish loading.

Publish assets before the page

Upload the new assets, check they can be fetched, then switch the page that references them. This ordering avoids a brief period in which the new HTML points to files that do not exist yet.

Keep rollback possible

A rollback should restore the previous page together with access to the assets it names. Do not delete every old file as the first step of a release. Clean up using an explicit inventory after checking which versions still need to be supported.

Open the workbench → · Back to the notes

Keep reading