MllrDev.CdnSupport 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package MllrDev.CdnSupport --version 1.0.0
                    
NuGet\Install-Package MllrDev.CdnSupport -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MllrDev.CdnSupport" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MllrDev.CdnSupport" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MllrDev.CdnSupport" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MllrDev.CdnSupport --version 1.0.0
                    
#r "nuget: MllrDev.CdnSupport, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MllrDev.CdnSupport@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MllrDev.CdnSupport&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MllrDev.CdnSupport&version=1.0.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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