AgentPages Sample

You found the second page

A folder, a trailing slash, and a lot of rules.

This page lives at about/index.html. Because it is named index.html, the address about/ serves it. Links inside it climb back up with ../, so the site keeps working wherever it is published.

The seven files you published

index.html
style.css
app.js
logo.svg
how-it-works.webp
how-it-works-poster.webp
about/
  index.html

Seven entries in one JSON request. Paths are relative and use /, never \.

What each type is served as

html  text/html; charset=utf-8
css   text/css; charset=utf-8
js    text/javascript; charset=utf-8
svg   image/svg+xml
png   image/png
jpg   image/jpeg
webp  image/webp
ico   image/x-icon
txt   text/plain; charset=utf-8
json  application/json

The type comes from the file extension only. Nothing is sniffed.

How an update works

A new version is written in full beside the old one, then one pointer file is switched atomically. Visitors see the old site or the new one, never a half-written mix. After the switch the old version is deleted.

Back to the lab