jcdcdev.Umbraco.CloudflareMediaCache 17.0.1

dotnet add package jcdcdev.Umbraco.CloudflareMediaCache --version 17.0.1
                    
NuGet\Install-Package jcdcdev.Umbraco.CloudflareMediaCache -Version 17.0.1
                    
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="jcdcdev.Umbraco.CloudflareMediaCache" Version="17.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jcdcdev.Umbraco.CloudflareMediaCache" Version="17.0.1" />
                    
Directory.Packages.props
<PackageReference Include="jcdcdev.Umbraco.CloudflareMediaCache" />
                    
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 jcdcdev.Umbraco.CloudflareMediaCache --version 17.0.1
                    
#r "nuget: jcdcdev.Umbraco.CloudflareMediaCache, 17.0.1"
                    
#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 jcdcdev.Umbraco.CloudflareMediaCache@17.0.1
                    
#: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=jcdcdev.Umbraco.CloudflareMediaCache&version=17.0.1
                    
Install as a Cake Addin
#tool nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=17.0.1
                    
Install as a Cake Tool

jcdcdev.Umbraco.CloudflareMediaCache

Documentation Umbraco Marketplace License NuGet Downloads Project Website

  • Automatically purge Cloudflare cache when media saved
    • Purge by prefix (Cloudflare Pro & Enterprise)
    • Purge all (All Cloudflare plans)
  • Adds cache headers when serving media
    • Respects image cropper

Quick Start

Install Package

dotnet add package jcdcdev.Umbraco.CloudflareMediaCache

Get Cloudflare Zone ID & API Key

You will need a Cloudflare Zone ID and API Key to use this package.

Note: The API Key should have the following permission:

  • Zone.Cache Purge

Configuration

Add the following section to your appsettings.json:

{
  "Cloudflare": {
    "Media": {
      "Cache": {
        "ZoneId": "ZONE_ID",
        "ApiToken": "API_TOKEN",
        "Enabled": true,
        "Mode": "All",
        "MaxAge": 2592000
      }
    }
  }
}

Options

Option Description
ZoneId The Cloudflare Zone ID
Key The Cloudflare API Key
Enabled Whether to enable functionality
Mode The cache mode (All, Prefix)
MaxAge The max-age for cache headers (seconds)

Contributing

Contributions to this package are most welcome! Please visit the Contributing page.

Acknowledgements (Thanks)

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
17.0.1 110 12/26/2025
17.0.1-alpha.3 131 12/22/2025
17.0.0 128 11/29/2025
17.0.0-alpha.5 125 11/28/2025
17.0.0-alpha.2 148 11/26/2025
16.0.2 221 10/29/2025
16.0.2-alpha0008 188 10/21/2025
16.0.1 202 8/12/2025
16.0.1-alpha0009 182 8/10/2025
16.0.0 384 6/12/2025
16.0.0-alpha0006 341 6/12/2025
16.0.0-alpha0005 350 6/10/2025
15.0.2 213 6/16/2025
15.0.2-alpha0019 204 6/3/2025
15.0.2-alpha0009 136 5/10/2025
15.0.1 282 4/22/2025
15.0.1-alpha0002 220 4/21/2025
15.0.0 361 11/19/2024
15.0.0-alpha0007 146 11/17/2024
15.0.0-alpha0006 160 11/12/2024
15.0.0-alpha0004 148 10/17/2024
15.0.0-alpha0003 148 10/17/2024
15.0.0-alpha0001 155 10/9/2024
14.0.5 196 6/16/2025
14.0.4 229 4/22/2025
14.0.4-alpha0002 230 4/22/2025
14.0.3 188 10/8/2024
14.0.2 182 7/22/2024
14.0.2-alpha0002 148 7/22/2024
14.0.1 180 7/22/2024
14.0.1-alpha0006 163 7/1/2024
14.0.0 176 6/4/2024
14.0.0-alpha0002 170 6/4/2024
14.0.0-alpha0001 157 5/25/2024
13.0.8 178 12/21/2025
13.0.8-alpha0013 270 12/17/2025
13.0.8-alpha0005 135 11/29/2025
13.0.7 196 10/29/2025
13.0.7-alpha0008 182 10/21/2025
13.0.6 198 8/12/2025
13.0.6-alpha0003 199 8/10/2025
13.0.5 170 7/27/2025
13.0.5-alpha0008 212 7/16/2025
13.0.4 195 6/16/2025
13.0.4-alpha0012 333 6/12/2025
13.0.4-alpha0005 191 6/3/2025
13.0.3 228 4/23/2025
13.0.3-alpha0002 205 4/21/2025
13.0.2 222 3/30/2025
13.0.2-alpha0003 218 3/18/2025
13.0.1 247 10/28/2024
13.0.1-alpha0007 164 10/28/2024
13.0.0 285 5/25/2024
13.0.0-alpha0001 172 5/25/2024
12.0.1-pullrequest0034-0003 153 9/26/2024
12.0.1-pullrequest0029-0003 146 9/25/2024
12.0.0 163 5/25/2024
12.0.0-alpha0001 173 5/25/2024
10.0.5 347 6/12/2025
10.0.5-alpha0008 191 6/2/2025
10.0.4 211 3/30/2025
10.0.4-alpha0008 227 3/30/2025
10.0.4-alpha0003 211 3/18/2025
10.0.3 167 1/28/2025
10.0.3-alpha0003 159 1/28/2025
10.0.2 202 10/30/2024
10.0.2-alpha0003 146 10/28/2024
10.0.1 181 9/27/2024
10.0.1-alpha0016 163 9/26/2024
10.0.1-alpha0007 151 9/25/2024
10.0.0 195 5/25/2024
10.0.0-alpha0001 171 5/25/2024
0.1.1 224 5/12/2024
0.1.0 165 5/12/2024