Fixed loading from cache for images and requests