* Bust Cache
(stylesheet)
| 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 |