Skip to content

Commit 0cdacc2

Browse files
heiskrCopilot
andauthored
Document why the purge scope excludes data/ and translations (#62472)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 11731c34-4a31-4175-ba46-4970237ba75d
1 parent 0ef34d3 commit 0cdacc2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/workflows/purge-fastly-changed-content.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { makePageSurrogateKey } from '@/frame/middleware/set-fastly-surrogate-ke
55
import github from './github'
66
import { getActionContext } from './action-context'
77

8-
// Hard-purges the English content pages whose source changed in a production
9-
// deploy, by surrogate key. Each page has one `language:<lang>,path:<relativePath>`
10-
// key covering all its version-URLs (see set-fastly-surrogate-key.ts), and Fastly's
11-
// batch purge takes up to 256 keys per request, so a normal deploy is one
12-
// request. Hard, not soft, so a just-changed page is evicted rather than served
13-
// stale to the author who reloads it.
8+
// Purges the English content pages whose source changed in a production deploy, by surrogate key.
9+
// Each page has one `language:<lang>,path:<relativePath>` covering all versions.
10+
// Fastly's batch purge takes up to 256 keys per request.
11+
// Uses hard purge instead of soft for PR authors to see their changes more quickly.
12+
// `data/` changes and AUTOTITLE produce too many keys.
13+
// Translations only rebuild once per day.
1414

1515
const CONTENT_PREFIX = 'content/'
1616

0 commit comments

Comments
 (0)