(reference: Reference)
| 123 | } |
| 124 | |
| 125 | export function cacheIdentity(reference: Reference): string { |
| 126 | return `${reference.host}/${reference.path}` |
| 127 | } |
| 128 | |
| 129 | export function same(left: Reference, right: Reference): boolean { |
| 130 | return cacheIdentity(left) === cacheIdentity(right) |