// Strip the digest out of the file name.
String realFile = file.substring(0, prevdotx) + file.substring(lastdotx);
result = resource.forFile(realFile);
String actualDigest = _resourceCache.getDigest(result);
valid = requestDigest.equals(actualDigest);
}