Route all Angular Universal requests to nginx, remove simon's hacks

This commit is contained in:
wiz
2020-11-27 23:01:47 +09:00
parent dee9fa2d9a
commit b6150a3237
5 changed files with 52 additions and 57 deletions

View File

@@ -35,9 +35,6 @@ export class HttpCacheInterceptor implements HttpInterceptor {
.pipe(tap((event: HttpEvent<any>) => {
if (!this.isBrowser && event instanceof HttpResponse) {
let keyId = request.url.split('/').slice(3).join('/');
if (keyId.indexOf('api/') === -1) {
keyId = 'api/' + keyId;
}
this.transferState.set(makeStateKey('/' + keyId), event);
}
}));