Fix typo in handling the caching policy for a resource.