remove `cache` option from pathname