MllrDev.CdnSupport
1.0.0
dotnet add package MllrDev.CdnSupport --version 1.0.0
NuGet\Install-Package MllrDev.CdnSupport -Version 1.0.0
<PackageReference Include="MllrDev.CdnSupport" Version="1.0.0" />
<PackageVersion Include="MllrDev.CdnSupport" Version="1.0.0" />
<PackageReference Include="MllrDev.CdnSupport" />
paket add MllrDev.CdnSupport --version 1.0.0
#r "nuget: MllrDev.CdnSupport, 1.0.0"
#:package MllrDev.CdnSupport@1.0.0
#addin nuget:?package=MllrDev.CdnSupport&version=1.0.0
#tool nuget:?package=MllrDev.CdnSupport&version=1.0.0
EPiServer.CdnSupport
Rewrites media URLs in EPiServer CMS. URLs are made unique and cacheable for 1 year.
Example: Media URL /globalassets/alloy-track/alloytrack.png will be rewritten to "/4a768e/globalassets/alloy-track/alloytrack.png" where the injected key is short form of the saved/published date ensuring the URL changes when the media changes. Requests where the injected key is outdated will be permanently redirected to an updated key for SEO reasons and to make sure bookmarks continue to work.
Supports CMS 12+. Previous version can be found on the CMS11 branch.
Getting started
public void ConfigureServices(IServiceCollection services)
{
.....
//Optional config: services.Configure<CdnSupportOptions>(o=>o.MaxAge = TimeSpan.FromDays(7));
services.AddCdnSupport();
}
public void Configure(IApplicationBuilder app)
{
....
app.UseCdnSupport();
}
CdnSupportOptions
MaxAge: The default expiration of 1 year is designed to optimize the length media stays in browser caches and that does not mean the content have to stay in a CDN for a year, see CDN documentation on which rules apply.
OverrideHost: If URLs to media should be rewritten to point to an external CDN use this configuration, do not use in combination with site specific assets in a multi site setup since multiple CDN hosts would have been required.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net5.0
- EPiServer.CMS.AspNetCore.Routing (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|