diff --git a/packages/core/src/pages/StudentLogin.js b/packages/core/src/pages/StudentLogin.js index 7963ab96..d76791f4 100644 --- a/packages/core/src/pages/StudentLogin.js +++ b/packages/core/src/pages/StudentLogin.js @@ -269,13 +269,9 @@ export default function StudentLogin({ swPath }) {

Accelerated Learning via Technology (ALT)

- {/*

- Reminder : - Dear Students, -Thank you for participating in the ALT Version 1 pilot. -We officially closed the pilot on 19th November, 2023. - -

*/} +

+ Reminder : Testing service worker changes. +

diff --git a/packages/studentprogram/src/service-worker.js b/packages/studentprogram/src/service-worker.js index a0d2c5e6..9104381d 100644 --- a/packages/studentprogram/src/service-worker.js +++ b/packages/studentprogram/src/service-worker.js @@ -37,7 +37,11 @@ registerRoute( return false; } // If this looks like a URL for a resource, because it contains // a file extension, skip. - if (url.pathname.match(fileExtensionRegexp)) { + // If this looks like a URL for a resource and doesn't end with .html, skip. + if ( + url.pathname.match(fileExtensionRegexp) && + !url.pathname.endsWith(".html") + ) { return false; } // Return true to signal that we want to use the handler. diff --git a/packages/studentprogram/src/serviceWorkerRegistration.js b/packages/studentprogram/src/serviceWorkerRegistration.js index fd0e8c5a..9f1e7c3c 100644 --- a/packages/studentprogram/src/serviceWorkerRegistration.js +++ b/packages/studentprogram/src/serviceWorkerRegistration.js @@ -116,8 +116,10 @@ function checkValidServiceWorker(swUrl, config) { window.location.reload(); }); }); - } else { - // Service worker found. Proceed as normal. + } else if ( + // Exclude HTML files from checking + !swUrl.endsWith(".html") + ) { registerValidSW(swUrl, config); } })