Images are not loaded from Sitecore Experience Edge after customizing links to use lowercase URLs


Description

Media Library images might be shown in preview, but not be available on a live site, when changing the LinkProvider and mediaUrlBuilder/urlBuilder to lowerCaseUrls=true. The issue arises if media items are not republished to update the URLs on Sitecore Experience Edge. At this point, media links are generated with lowercase URLs, which are different from the media URLs on Experience Edge.

The root cause of the issue is that media URLs in Sitecore Experience Edge are case-sensitive

Solution

To ensure that the media URLs work when lowercase URLs are used:

  1. Patch the mediaUrlBuilder/urlBuilder and LinkProvider to use:
    <lowercaseUrls>true</lowercaseUrls>
  2. Republish all media items to update all related links on Experience Edge to use the new format.