jcdcdev.Umbraco.CloudflareMediaCache
0.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package jcdcdev.Umbraco.CloudflareMediaCache --version 0.1.1
NuGet\Install-Package jcdcdev.Umbraco.CloudflareMediaCache -Version 0.1.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="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add jcdcdev.Umbraco.CloudflareMediaCache --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: jcdcdev.Umbraco.CloudflareMediaCache, 0.1.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.
// Install jcdcdev.Umbraco.CloudflareMediaCache as a Cake Addin #addin nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=0.1.1 // Install jcdcdev.Umbraco.CloudflareMediaCache as a Cake Tool #tool nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
jcdcdev.Umbraco.CloudflareMediaCache
Features
- 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.
- Zone ID: Find your Zone ID
- API Key: Create an API Key
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 read the Contributing Guidelines.
Acknowledgments (thanks!)
- LottePitcher - opinionated-package-starter
- jcdcdev - jcdcdev.Umbraco.PackageTemplate
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- CloudFlare.Client (>= 6.3.0)
- jcdcdev.Umbraco.Core (>= 0.3.1)
- SixLabors.ImageSharp.Web (>= 3.0.0)
- Umbraco.Cms.Core (>= 10.4.0 && < 11.0.0)
- Umbraco.Cms.Infrastructure (>= 10.4.0 && < 11.0.0)
-
net7.0
- CloudFlare.Client (>= 6.3.0)
- jcdcdev.Umbraco.Core (>= 0.3.1)
- Umbraco.Cms.Core (>= 11.0.0 && < 13.0.0)
- Umbraco.Cms.Imaging.ImageSharp (>= 11.0.0 && < 13.0.0)
- Umbraco.Cms.Infrastructure (>= 11.0.0 && < 13.0.0)
-
net8.0
- CloudFlare.Client (>= 6.3.0)
- jcdcdev.Umbraco.Core (>= 0.3.1)
- Umbraco.Cms.Core (>= 13.0.0 && < 14.0.0)
- Umbraco.Cms.Imaging.ImageSharp (>= 13.0.0 && < 14.0.0)
- Umbraco.Cms.Infrastructure (>= 13.0.0 && < 14.0.0)
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 |
---|---|---|
15.0.0 | 35 | 11/19/2024 |
15.0.0-alpha0007 | 58 | 11/17/2024 |
15.0.0-alpha0006 | 61 | 11/12/2024 |
15.0.0-alpha0004 | 70 | 10/17/2024 |
15.0.0-alpha0003 | 68 | 10/17/2024 |
15.0.0-alpha0001 | 81 | 10/9/2024 |
14.0.3 | 92 | 10/8/2024 |
14.0.2 | 109 | 7/22/2024 |
14.0.2-alpha0002 | 80 | 7/22/2024 |
14.0.1 | 92 | 7/22/2024 |
14.0.1-alpha0006 | 75 | 7/1/2024 |
14.0.0 | 111 | 6/4/2024 |
14.0.0-alpha0002 | 89 | 6/4/2024 |
14.0.0-alpha0001 | 97 | 5/25/2024 |
13.0.1 | 83 | 10/28/2024 |
13.0.1-alpha0007 | 57 | 10/28/2024 |
13.0.0 | 216 | 5/25/2024 |
13.0.0-alpha0001 | 84 | 5/25/2024 |
12.0.1-pullrequest0034-0003 | 83 | 9/26/2024 |
12.0.1-pullrequest0029-0003 | 72 | 9/25/2024 |
12.0.0 | 95 | 5/25/2024 |
12.0.0-alpha0001 | 86 | 5/25/2024 |
10.0.2 | 79 | 10/30/2024 |
10.0.2-alpha0003 | 60 | 10/28/2024 |
10.0.1 | 80 | 9/27/2024 |
10.0.1-alpha0016 | 74 | 9/26/2024 |
10.0.1-alpha0007 | 77 | 9/25/2024 |
10.0.0 | 97 | 5/25/2024 |
10.0.0-alpha0001 | 85 | 5/25/2024 |
0.1.1 | 147 | 5/12/2024 |
0.1.0 | 90 | 5/12/2024 |