update cachekey algorithm to handle urls