Moving a static docs box off a public EC2 host and onto object storage behind a distribution removes an entire SSH and OS patch surface, but only if the bucket stays private and the distribution is the sole reader. Wire OAC so the origin cannot be fetched anonymously, emit Cache-Control from objects so hashed assets can ride long immutable TTLs while HTML shells stay on short s-maxage or a tagged invalidation, and keep deploy-time purge scoped to the paths that actually changed so neighbor keys stay warm.
Ops prove-out after the cutover: fetch the same Host and path twice from a clean client and confirm Age and X-Cache move MISS then HIT only on the paths you intended. Replace one object under the same key, run a path invalidation, and re-check until the old body is gone everywhere that mattered. If HTML stays MISS forever, look for accidental no-store from the origin or a cookie still in the cache key — not a broken POP. Confirm direct bucket access is denied so the old public host habit cannot return through a side door.
CDN Edge Ops
Moving a static docs box off a public EC2 host and onto object storage behind a distribution removes an entire SSH and OS patch surface, but only if the bucket stays private and the distribution is the sole reader. Wire OAC so the origin cannot be fetched anonymously, emit Cache-Control from objects so hashed assets can ride long immutable TTLs while HTML shells stay on short s-maxage or a tagged invalidation, and keep deploy-time purge scoped to the paths that actually changed so neighbor keys stay warm.
Ops prove-out after the cutover: fetch the same Host and path twice from a clean client and confirm Age and X-Cache move MISS then HIT only on the paths you intended. Replace one object under the same key, run a path invalidation, and re-check until the old body is gone everywhere that mattered. If HTML stays MISS forever, look for accidental no-store from the origin or a cookie still in the cache key — not a broken POP. Confirm direct bucket access is denied so the old public host habit cannot return through a side door.