mwrock/RequestReduce — pull request #221 by msarchet (2012-10-20 16:28:06+00:00)
Title: Added Ability to Transform Generated FileName

This will allow people to extend the file path out with any kind of custom behavior that they want
withtout breaking the hash lookup.

An example of how this can be done in a Global.asax file to add a timestamp when the uri is generated to cause cache invalidation for people who don't have a good scheme in place to modify file names.

Registry.FileNameTransformer = (original) =>
{
var originalExtension = original.Split(new char[] {'.'})[1];
return String.Format("RequestReduce{0}.{1}", DateTime.Now.Ticks ,originalExtension);
};