public void ProcessRequest(HttpContext context)
{
var request = context.Request;
string fileName = request.FilePath;
fileName = fileName.Substring(Utils.RelativeWebRoot.Length);
string resKey = "";
string script = "";
if (fileName.StartsWith("res-"))
{
resKey = fileName.Substring(4);
resKey = resKey.Substring(0, resKey.IndexOf("."));
if (Blog.CurrentInstance.Cache[resKey] != null)
{
script = (string)Blog.CurrentInstance.Cache[resKey];
}
}
SetHeaders(script.GetHashCode(), context);
context.Response.Write(script);
}