Fix a bug in caching cross-protocol redirects.