Documentation

Use DX Lib Cache as a drop-in replacement for common CDN library URLs. All endpoints support HTTPS, CORS and long-term caching headers.

Base URL

https://dx-lib-cache.online

Library endpoint

Pattern:

/libs/{package}/{version}/{file}

Examples:

https://dx-lib-cache.online/libs/jquery/3.7.1/jquery.min.js
https://dx-lib-cache.online/libs/react/18.3.1/umd/react.production.min.js
https://dx-lib-cache.online/libs/bootstrap/5.3.3/css/bootstrap.min.css
https://dx-lib-cache.online/libs/font-awesome/6.5.2/css/all.min.css

Health check

The service exposes a simple health endpoint:

GET /health

Response:
{
  "status": "ok",
  "service": "media-gateway",
  "version": "4.2.1"
}

Caching behaviour

Immutable versioned assets are cached with a long Cache-Control max-age (typically 1 year). The first request for a new version may take slightly longer while the edge populates the cache.

We recommend always using versioned paths so that updates are safe and cacheable.

CORS

All public library endpoints return appropriate CORS headers so they can be loaded from any origin.