CdnMediaUrlProvider doesn't work in Backoffice?
# help-with-umbraco
r
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
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.