fix(supervisor): launch hugo server with --noHTTPCache #344
No reviewers
Labels
No labels
bug
enhancement
needs-triage
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle!344
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "afk/342"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #342
What
hugo serversendsLast-Modifiedand noCache-Control, so a preview iframe recreated after leaving the View module (View → Edit → save → View) is served from the browser's disk cache and shows the page as it was before the save. The supervisor now passes--noHTTPCacheto Hugo, which makes it sendCache-Control: no-store, no-cache, must-revalidate, max-age=0andPragma: no-cache, so every load revalidates.internal/supervisor/supervisor.go: adds--noHTTPCacheto thehugo serverarguments inrunOnce. It is passed always, in both loopback and--preview-base-urlmode.internal/supervisor/supervisor_test.go:TestHugoArgsFollowPublicURLnow asserts the flag in all four cases (loopback and three public-URL cases).docs/harness.md"Serving": lists the flag next to--buildDraftsand the bind. The README is unchanged. No scaffolded skill walks through Hugo's flags, so no skill changes either.The client is unchanged:
PreviewPane's "same URL means no reload" discipline (#241) stays as it is.Verification
go test ./...passes (aftermake buildcreatesweb/dist).harness inita scratch site, thenharness serve --site <dir> --preview-port 18313, thencurl -sI http://127.0.0.1:18313/: The headers also appear on 404 responses. This settles the issue's "assumption to check": the flag covers every page Hugo renders and serves.🤖 Generated with Claude Code
[autoland] verdict: pass
PASS. Signal: ci / build-and-test success (go vet, go test ./... with pinned Hugo 0.167.0, npm test). Title is Conventional Commits, body has Closes #342, diff is within the issue's Key interfaces (internal/supervisor/supervisor.go:246, supervisor_test.go:195, docs/harness.md:168). No skill or AGENTS.md names Hugo's flags, so none needs a change.