MCPcopy Index your code
hub / github.com/angular/angular / cacheBust

Function cacheBust

packages/service-worker/worker/src/assets.ts:554–556  ·  view source on GitHub ↗

* Construct a cache-busting URL for a given URL.

(url: string)

Source from the content-addressed store, hash-verified

552 * Construct a cache-busting URL for a given URL.
553 */
554 private cacheBust(url: string): string {
555 return url + (url.indexOf('?') === -1 ? '?' : '&') + 'ngsw-cache-bust=' + Math.random();
556 }
557
558 protected async safeFetch(req: Request): Promise<Response> {
559 try {

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…