Skip to content

Commit

Permalink
Avoid storing redirect info when a cache key is specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrv committed Aug 7, 2017
1 parent 0a19141 commit 44f876c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/strategy/RemoteTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ export class RemoteTransfer {
this.streamStore = new stream.PassThrough();

this.strategy.cache.store(this.state.address, this.streamStore, headers).catch(() => {});
// TODO: Only call this is cacheKey is not set!
this.strategy.addLinks(this.state.address);
if(!this.state.address.cacheKey) this.strategy.addLinks(this.state.address);
}

if(!state.buffer) state.buffer = new BufferStream();
Expand Down

0 comments on commit 44f876c

Please sign in to comment.