• Public assets

    300req / 60s

    /assets/* · 1yr canonical immutable cache · ETag + Range

  • Private signed

    120req / 60s

    /private/* · HMAC-SHA256 · no-store CDN · no-referrer

  • Image transforms

    60req / 60s

    /img/assets/* · Raster-only (415 SVG) · AVIF/WebP

MethodPathAuthBehavior & cache
GET/assets/{key}PublicServes R2 object with query-stripped canonical Edge Cache, max-age=31536000, immutable, ETag/304, 206 Range, SVG CSP sandbox, and attachment on active/opaque types.
GET/private/{key}?exp=&sig=HMAC-SHA256Constant-time signature validation against /private/{key}:{exp} with CDN-Cache-Control: no-store, Referrer-Policy: no-referrer, and noindex. Returns 403 if expired/invalid.
GET/img/assets/{key}?w=&h=&q=&f=PublicOn-the-fly raster resize & WebP/AVIF conversion via imgproxy (default webp). Blocks non-assets/* (403) and non-raster types like SVG/PDF (415).
GET/uploadJWT in UIInstallable PWA Upload Studio (pre-flight magic-byte/SVG checks, drag/drop, paste, camera, Android Share Target) wired to api.mikeodnis.dev/v1/media.
GET/health & /health/metricsPublicLiveness check and native Cloudflare edge rate-limiter counters (Cache-Control: no-store, nosniff).

Fetch an immutable asset or request a resized WebP image:

curl -I https://cdn.mikeodnis.dev/assets/demo/avatar.png

curl -I "https://cdn.mikeodnis.dev/img/assets/demo/avatar.png?w=640&q=85&f=webp"

Upload a file via the authenticated Media API:

curl -X POST https://api.mikeodnis.dev/v1/media/upload \
  -H "Authorization: Bearer $JWT" \
  -F "file=@./screenshot.png" \
  -F "visibility=public"

Structured metadata for AI agents, crawlers, and security researchers:

How are uploads, SVGs, and active files protected against XSS?

Uploads are verified with 3-way magic-byte + extension + MIME checks and full-document SVG XSS/XXE scanning (presigned PUTs stay quarantined under non-servable staging/* until confirmed). At the edge, SVG/HTML/XML objects emit Content-Security-Policy: default-src 'none'; sandbox, active/zip/opaque payloads force Content-Disposition: attachment, and every response sets X-Content-Type-Options: nosniff.

How do I install Upload Studio on Android or Desktop?

Open /upload in Chrome, Brave, or Safari and tap Install app (or Add to Home Screen). On Android, it registers in the system Share Sheet so you can share screenshots and photos directly to R2.

What rate-limit headers does the CDN return?

Every asset, private, and transform request enforces per-visitor isolated edge quotas and returns standard IETF RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, RateLimit-Policy, and Retry-After on HTTP 429.