How to Optimize Content with Sitecore

Thursday, September 13, 2018

By Joseph LoPresti, Solutions Engineer

We have a number of Sitecore customers taking advantage of ImageEngine today.  ImageEngine acts as a pull-based CDN. Below, I outline what steps our customers take to optimize content with Sitecore.

Sitecore CMS is a leading .NET Content Management System for mid-market commercial or large enterprises, non-profits, and government organizations that require enterprise-level functionality, integration, and scalability.  

Sitecore includes some image manipulation functionality out of the box, but images dimensions need to be manually set and they are not automatically distributed by a CDN.  This makes ImageEngine a perfect fit for Sitecore, enabling intelligent image optimization delivered through our global CDN with a few simple steps (request a trial token or signup for ImageEngine here).

Getting Started

To get started, ScientiaMobile will configure your image origin and provide you with an endpoint that you can use to pass images through our service.  We will handle the CDN configuration and all you need to do is update a few settings in Sitecore.

The CDN properties are controlled using these settings, found in the Sitecore.config file:

<setting name="Media.MediaLinkServerUrl" value="https://images.mysite.imgeng.in" />

<setting name="Media.MediaLinkPrefix" value="-/media/images" />

<setting name="Media.AlwaysIncludeServerUrl" value="true" />

<setting name="MediaResponse.Cacheability" value="public" />

Media.MediaLinkServerUrl = This is the ImageEngine endpoint that ScientiaMobile will configure and provide you.

Media.MediaLinkPrefix = The media library link URL.  With ImageEngine we need to specify the directory containing your image content.  If you require ImageEngine to deliver non-image content, we can either provide you with a secondary domain or we can make a modification to our edge caching rules to enable mixed content.

Media.AlwaysIncludeServerUrl = Tells Sitecore to always include the server URL in the media requests

MediaResponse.Cacheability = Allows the cache settings of any item to be publicly available.  This enables us to access the cache-control and other headers.

Start Using Your Globally Distributed Network

Now that you’re all set up with ImageEngine’s CDN, you’ll be able to reduce latency for all users accessing their content as well as reduce the payload of your site, improve UX on all devices and so much more. Read about the benefits of ImageEngine.

If you have any questions or concerns about getting started, you can always contact me at Joe@ScientiaMobile.com and use our free resources such as our ImageEngine Getting Started Guide.