Hello,
I have enabled the CdnMediaUrlProvider like this in the Startup.cs
builder.AddCdnMediaUrlProvider(options =>
{
options.Url = new Uri("URL");
options.RemoveMediaFromPath = false;
})
It works fine on the website but images in Backoffice doesn't work and don't use the CDN. Can I make somehow the Backoffice work with it as well?
j
Jason
09/25/2023, 2:04 PM
Images in the backoffice don't use the URL providers, so if you want to serve images in the backoffice via a CDN then you'll need to put a CDN in front of your editing domain and (only) cache the
/media
path.
It's also possible to set up a redirect to the CDN domain but as that results in double-requests it's not ideal.