implementing -searchForCachedResource: and added documentation