Trim fragments from URIs when generating the cache key.