Skip to content

[Website] Replace the generic proxy with a cached Blueprints index - #4471

Merged
adamziel merged 1 commit into
trunkfrom
codex/blueprints-index-json
Oct 19, 2026
Merged

adamziel merged 1 commit into
trunkfrom
codex/blueprints-index-json

Conversation

@adamziel

Copy link
Copy Markdown
Collaborator

Replaces /proxy/network-first-fetch/<url> with /blueprints-index.json. The service worker fetches only the Blueprints directory index from GitHub, parses it, and returns a new JSON response with nosniff. Upstream HTML and headers are never served as a Playground document.

Keeps the last valid index for offline use. The directory UI uses the new endpoint. Removed proxy routes return 404 before the asset cache is consulted.

No domain or embedding-policy changes.

Testing

  • Open New Playground → Blueprints and check that directory entries load.
  • Load /blueprints-index.json, go offline, and load it again. The cached JSON should still load.
  • Open an old /proxy/network-first-fetch/… URL. It should return 404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant