PurgeCDN 1.0.20
See the version list below for details.
dotnet add package PurgeCDN --version 1.0.20
NuGet\Install-Package PurgeCDN -Version 1.0.20
<PackageReference Include="PurgeCDN" Version="1.0.20" />
<PackageVersion Include="PurgeCDN" Version="1.0.20" />
<PackageReference Include="PurgeCDN" />
paket add PurgeCDN --version 1.0.20
#r "nuget: PurgeCDN, 1.0.20"
#:package PurgeCDN@1.0.20
#addin nuget:?package=PurgeCDN&version=1.0.20
#tool nuget:?package=PurgeCDN&version=1.0.20
Umbraco CDN Purge
A package which allows editors to purge CDN content in Umbraco 7. Currently works with KeyCDN but if you are interested in support for other CDNs, please create an issue.
Configuration
There are four app settings that need to be added:
<add key="PurgeCdn" value="keycdn" />
<add key="PurgeCdnApiKey" value="API KEY" />
<add key="PurgeCdnZoneId" value="1234" />
<add key="PurgeCdnZoneUrl" value="ZONE URL" />
<add key="PurgeCdnMethod" value="tag" />
Currently this just supports KeyCDN, so the first app setting is not used, but when support for other CDNs are added, it will be used to determine which CDN API to call.
PurgeCdnMethod values can be tag or url. When set to tag, it will use the tag node-x where x is the id of the node. When purging call content, it will use the tag umbhtml. For this to work, you need to add an HTTP header to your pages. For KeyCDN, you can do this as follows:
Response.AddHeader("Cache-Tag", "umbhtml node-" + Model.Id);
When PurgeCdnMethod is set to url, it will purge by all the URLs (as returned by the current UrlProvider).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- UmbracoCms.Core (>= 7.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial public release.