cache href string instead of location object