Skip to content
This PoC project aims to speed up the way that Sitecore serves media.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Properties
.gitignore
CacheableMedia.cs
CacheableMediaModule.cs
CacheableMediaRequest.csproj
CacheableMediaRequest.sln
CacheableMediaRequestHandler.cs
README.md
ResponseFilterStream.cs
web.config.transform

README.md

CacheableMediaRequest

This PoC project aims to speed up the way that Sitecore serves media.

Built on Sitecore 9.1.1.

A quick test revealed that requesting the /-/media/Default%20Website/cover.ashx image with querystring parameters would take 50-100 ms on a vanilla Sitecore 91.1.1 instance, when being tested on a server without significant load.

The goal of this PoC was to make the media response with querystring parameters cacheable, as the OutputCache simply won't cache Sitecore media with querystrings, such as ?w=800. With limited testing, I was able to get the response time as low as 1ms.

You can’t perform that action at this time.