Documentation
Point a hostname at the gateway and start serving cached media over HTTPS. Most integrations take a few minutes.
Quick start
Create a CNAME from your media hostname to your assigned gateway endpoint, then request assets over HTTPS as usual. The gateway terminates TLS and caches responses at the edge.
media.example.com. CNAME cdn.streamcache-media.com.
DNS setup
Two records are enough to get started: one for the asset hostname, and an optional apex alias.
media CNAME cdn.streamcache-media.com.
@ ALIAS cdn.streamcache-media.com.
Cache control
Standard Cache-Control headers from your origin are respected, so you keep full control of freshness and TTLs. You can also override TTLs per path from the dashboard.
Cache-Control: public, max-age=86400, stale-while-revalidate=600
Vary: Accept-Encoding
Purge API
Invalidate a path across all edge nodes with a single authenticated request.
curl -X POST https://cdn.streamcache-media.com/v1/purge \
-H "Authorization: Bearer $TOKEN" \
-d '{"paths":["/video/intro.mp4","/img/*"]}'
Response headers
Every response carries diagnostic headers so you can inspect cache behaviour:
X-Cache—HIT,MISSorSTALEX-Edge-Location— the PoP that served the requestAge— seconds the object has been cached
Media & range requests
Range requests are honoured end to end, so players can seek within large audio and video objects without pulling the whole file. Large objects are streamed from the edge and revalidated in the background.