Extract and cache the pathname string of an http request