Caching in MVC

Dec 3, 2010 at 12:35 PM

I like your prodject and tried to implement it in out MVC 2 solution on IIS 7.

Everything runs fine except the caching, it won't create any files .fsis files.

Does anyone got a clue?

Jul 1, 2011 at 5:48 PM

The issue is the size of the cached filenames. I've fixed this issue in my version of the project.

One quick solution is to modify the "key" in the ImageHandler.ProcessRequest() function. Instead of it being the whole URL, use the Request.Url.ToString().ToLowerInvariant().GetHashCode().ToString()

Mine does a hash of the original file modified date, all parameters and makes a 64 character hex (MD5) hash from it.

I'll try and fork the project here soon since the original author has abandoned the project.