If a main resource is loaded from a cache entry that involved redirects the document will end up setting the Referer-headers of the subresources to the request URL not the redirected URL
<rdar://problem/22917174>
Created attachment 262260 [details] patch
Created attachment 262261 [details] patch
Comment on attachment 262261 [details] patch r=me
Created attachment 262269 [details] for landing
https://trac.webkit.org/r190418