jcdcdev.Umbraco.CloudflareMediaCache 16.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package jcdcdev.Umbraco.CloudflareMediaCache --version 16.0.2
                    
NuGet\Install-Package jcdcdev.Umbraco.CloudflareMediaCache -Version 16.0.2
                    
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="16.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jcdcdev.Umbraco.CloudflareMediaCache" Version="16.0.2" />
                    
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 16.0.2
                    
#r "nuget: jcdcdev.Umbraco.CloudflareMediaCache, 16.0.2"
                    
#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@16.0.2
                    
#: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=16.0.2
                    
Install as a Cake Addin
#tool nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=16.0.2
                    
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 net9.0 is compatible.  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
17.0.1 95 12/26/2025
17.0.1-alpha.3 125 12/22/2025
17.0.0 120 11/29/2025
17.0.0-alpha.5 122 11/28/2025
17.0.0-alpha.2 140 11/26/2025
16.0.2 216 10/29/2025
16.0.2-alpha0008 181 10/21/2025
16.0.1 198 8/12/2025
16.0.1-alpha0009 177 8/10/2025
16.0.0 380 6/12/2025
16.0.0-alpha0006 334 6/12/2025
16.0.0-alpha0005 344 6/10/2025
15.0.2 208 6/16/2025
15.0.2-alpha0019 201 6/3/2025
15.0.2-alpha0009 134 5/10/2025
15.0.1 277 4/22/2025
15.0.1-alpha0002 211 4/21/2025
15.0.0 356 11/19/2024
15.0.0-alpha0007 142 11/17/2024
15.0.0-alpha0006 153 11/12/2024
15.0.0-alpha0004 145 10/17/2024
15.0.0-alpha0003 139 10/17/2024
15.0.0-alpha0001 150 10/9/2024
14.0.5 188 6/16/2025
14.0.4 222 4/22/2025
14.0.4-alpha0002 225 4/22/2025
14.0.3 186 10/8/2024
14.0.2 178 7/22/2024
14.0.2-alpha0002 145 7/22/2024
14.0.1 177 7/22/2024
14.0.1-alpha0006 160 7/1/2024
14.0.0 175 6/4/2024
14.0.0-alpha0002 166 6/4/2024
14.0.0-alpha0001 156 5/25/2024
13.0.8 171 12/21/2025
13.0.8-alpha0013 262 12/17/2025
13.0.8-alpha0005 129 11/29/2025
13.0.7 189 10/29/2025
13.0.7-alpha0008 175 10/21/2025
13.0.6 191 8/12/2025
13.0.6-alpha0003 194 8/10/2025
13.0.5 168 7/27/2025
13.0.5-alpha0008 204 7/16/2025
13.0.4 187 6/16/2025
13.0.4-alpha0012 327 6/12/2025
13.0.4-alpha0005 185 6/3/2025
13.0.3 219 4/23/2025
13.0.3-alpha0002 200 4/21/2025
13.0.2 217 3/30/2025
13.0.2-alpha0003 214 3/18/2025
13.0.1 243 10/28/2024
13.0.1-alpha0007 160 10/28/2024
13.0.0 282 5/25/2024
13.0.0-alpha0001 168 5/25/2024
12.0.1-pullrequest0034-0003 147 9/26/2024
12.0.1-pullrequest0029-0003 139 9/25/2024
12.0.0 154 5/25/2024
12.0.0-alpha0001 166 5/25/2024
10.0.5 340 6/12/2025
10.0.5-alpha0008 185 6/2/2025
10.0.4 205 3/30/2025
10.0.4-alpha0008 223 3/30/2025
10.0.4-alpha0003 209 3/18/2025
10.0.3 161 1/28/2025
10.0.3-alpha0003 154 1/28/2025
10.0.2 199 10/30/2024
10.0.2-alpha0003 142 10/28/2024
10.0.1 176 9/27/2024
10.0.1-alpha0016 160 9/26/2024
10.0.1-alpha0007 145 9/25/2024
10.0.0 192 5/25/2024
10.0.0-alpha0001 166 5/25/2024
0.1.1 219 5/12/2024
0.1.0 160 5/12/2024