Only compute the content digest if the URI has a content digest.
Speed up: only compute the content digest if the content name has one to check.