Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
bust sw cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Daniel Munoz Gonzalez committed Jul 20, 2018
1 parent 37bec3d commit 4905199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function configure(aurelia: Aurelia) {
}
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("/sw.js")
navigator.serviceWorker.register(`/sw.js?v=${Date.now()}`)
.then(registration => {
console.log("SW registered: ", registration);
})
Expand Down

0 comments on commit 4905199

Please sign in to comment.