cdn.mikeodnis.dev
CDN
Immutable static asset delivery, on-the-fly AVIF/WebP image transforms via imgproxy, and constant-time HMAC-SHA256 signed private objects for the *.mikeodnis.dev platform.
Edge asset delivery · Cloudflare Workers + R2
Checking status…
Edge capabilities
-
Public assets
300req / 60s
-
Private signed
120req / 60s
-
Image transforms
60req / 60s
Edge route reference
| Method | Path | Auth | Behavior & cache |
|---|---|---|---|
| GET | /assets/{key} | Public | Serves 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-SHA256 | Constant-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= | Public | On-the-fly raster resize & WebP/AVIF conversion via imgproxy (default webp). Blocks non-assets/* (403) and non-raster types like SVG/PDF (415). |
| GET | /upload | JWT in UI | Installable 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/metrics | Public | Liveness check and native Cloudflare edge rate-limiter counters (Cache-Control: no-store, nosniff). |
Quick start examples
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"
Machine & LLM discovery
Structured metadata for AI agents, crawlers, and security researchers:
-
/llms.txtConcise Markdown index for LLMs -
/llms-full.txtFull route, signing & error spec -
/openapi.yamlOpenAPI 3.1 contract -
/.well-known/security.txtRFC 9116 security contact -
/robots.txt&/sitemap.xmlCrawler & sitemap directives -
/manifest.webmanifestInstallable PWA + Android Share Target
Frequently asked questions
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.