Skip to content

fix(infra): remove _headers (not applicable to IC asset canister hosting)#183

Merged
raymondk merged 1 commit intomainfrom
infra/agent-docs-spec-compliance
Apr 30, 2026
Merged

fix(infra): remove _headers (not applicable to IC asset canister hosting)#183
raymondk merged 1 commit intomainfrom
infra/agent-docs-spec-compliance

Conversation

@marc0olo
Copy link
Copy Markdown
Member

Follow-up to #182.

The public/_headers file added in #182 is a Cloudflare Pages convention and has no effect on IC asset canister hosting. The site is deployed via icp.yaml using @dfinity/asset-canister, which serves files by URL path and does not process _headers files.

Custom response headers for .md files are already configured in public/.ic-assets.json5 (Content-Type: text/markdown; charset=utf-8 for **/*.md).

The content-negotiation spec check (serving different content for the same URL based on the Accept header) is not achievable with the IC asset canister without an edge worker or CDN middleware. See #181 for tracking.

Sync recommendation

hand-written

@marc0olo marc0olo force-pushed the infra/agent-docs-spec-compliance branch from b774521 to a1028e0 Compare April 30, 2026 16:07
@raymondk raymondk merged commit 52312f3 into main Apr 30, 2026
1 check passed
@raymondk raymondk deleted the infra/agent-docs-spec-compliance branch April 30, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants