MCPcopy Index your code
hub / github.com/castillo-io/angular-css / bustCache

Function bustCache

angular-css.js:183–193  ·  view source on GitHub ↗

* Bust Cache

(stylesheet)

Source from the content-addressed store, hash-verified

181 * Bust Cache
182 **/
183 function bustCache(stylesheet) {
184 if (!stylesheet) {
185 if(DEBUG) $log.error('No stylesheets provided');
186 return;
187 }
188 var queryString = '?cache=';
189 // Append query string for bust cache only once
190 if (stylesheet.href.indexOf(queryString) === -1) {
191 stylesheet.href = stylesheet.href + (stylesheet.bustCache ? queryString + (new Date().getTime()) : '');
192 }
193 }
194
195 /**
196 * Filter By: returns an array of routes based on a property option

Callers 1

angular-css.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected