Changelog

jsr-io/jsr · · 3 commits

CDN caching lands across hot API paths

The API now adds CDN caching for user, sitemap, package manifest, and publish flows, cutting load on frequently hit unauthenticated endpoints.

CDN cache headers added to user endpoints (crowlbot17214ea)

GET /users/:id and GET /users/:id/scopes now return cacheable responses for five minutes at the edge. These are high-traffic read paths, so this should reduce repeated origin hits on profile and scope pages.

Package manifests now purge CDN cache on publish (crowlbot0472704)

Publishing and metadata updates now explicitly purge the affected package and npm version manifest URLs after writing them, while also switching the manifest uploads to a cache-friendly Cache-Control. That keeps deno add, deno install, and npm-style manifest resolution fast without serving stale package metadata.

Sitemap responses are cached at the CDN (crowlbot444aeff)

The sitemap index and the package/scope sitemap XML endpoints now send Cache-Control headers, letting Cloudflare serve shared copies instead of forcing full table scans on every crawler request. This should significantly cut unnecessary database and API load from search-engine and AI crawlers.