force refetch of remote resources that have been added before the SW is ready, #75061

This commit is contained in:
Johannes Rieken
2019-07-24 11:27:30 +02:00
parent 07d00198a8
commit e0b60266a2
4 changed files with 59 additions and 9 deletions

View File

@@ -1200,7 +1200,7 @@ export function asDomUri(uri: URI): URI {
if (Schemas.vscodeRemote === uri.scheme) {
// rewrite vscode-remote-uris to uris of the window location
// so that they can be intercepted by the service worker
return _location.with({ path: '/vscode-resources/fetch', query: JSON.stringify({ u: uri.toJSON(), i: 1 }) });
return _location.with({ path: '/vscode-resources/fetch', query: `u=${JSON.stringify(uri)}` });
}
return uri;
}