page:guides:asp net core:cdn assets

Deliver public assets through CDN for ASP.NET Core

Summary

Cdn assets for a ASP.NET Core app on Ample. Verified on ASP.NET Core: a versioned, immutable-cached asset uploaded to a published bucket and served from the CDN URL. Build and start: dotnet publish -c Release -o out in the builder, then dotnet .dll on the dotnet-10 template with ASPNETCORE_URLS bound to PORT.

Representative Queries

Resource Requirements

Workload

Deliver public assets through CDN

Prerequisites

Workflow Steps

  1. Build and start
    dotnet publish -c Release -o out in the builder, then dotnet .dll on the dotnet-10 template with ASPNETCORE_URLS bound to PORT; the server must bind 0.0.0.0 on PORT.
  2. Publish a bucket for public assets
    Publish only the asset bucket; upload versioned keys with an immutable Cache-Control header and build URLs from its public URL. Command: ample bucket publish
  3. Verify
    Fetch the live URL and /p/versioned-static-assets on the example; on failure read the build and runtime logs.
    Command: ample logs --kind build

Examples

Success Checks

Limitations

Cost Estimate

Evidence Summary

Next Actions