private static bool IsResourceFile(Uri notFoundUri)
{
string extension = notFoundUri.AbsolutePath;
int extPos = extension.LastIndexOf('.');
if (extPos > 0)
{
extension = extension.Substring(extPos + 1);
if (_ignoredResourceExtensions.Contains(extension))
{
// Ignoring 404 rewrite of known resource extension
Logger.Debug("Ignoring rewrite of '{0}'. '{1}' is a known resource extension", notFoundUri.ToString(), extension);
return true;
}
}
return false;
}