@Qirui_Sun found that relative-urls (i.e. done-ssr proxy-request) were not matching requests in XHR_CACHE because requests in XHR_CACHE have absolute-urls.
the fix is to check if url is a relative-url (i.e. url starts with a slash) then strip everything before pathname in request.url.
@Qirui_Sun found that relative-urls (i.e. done-ssr proxy-request) were not matching requests in XHR_CACHE because requests in XHR_CACHE have absolute-urls.
the fix is to check if
url
is a relative-url (i.e. url starts with a slash) then strip everything before pathname inrequest.url
.