Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,7 +30,9 @@ export default function register() {
}

window.addEventListener('load', () => {
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
// Avoid service worker caching issues.
const noCache = new Date() * 1;
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js?nocache=${noCache}`;

if (isLocalhost) {
// This is running on localhost. Lets check if a service worker still exists or not.
Expand Down