I have found the issue. The entire setup was correct. The issue was in the urls I was including in 'assets' in the 'sw.js' file. The forward slash in front of the url was causing the issue. The best way to troubleshoot this is to eliminate all url and add 1 by 1.
const assets = [
'/',
'index.html',
'images/AppliedArts.PNG',
'images/MasterBA.png',
'images/MscCS.png',
'images/MscEngineer.png',
'images/UXDesign.png',
'images/logo.png',
'style.css',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css',
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css',
'https://fonts.googleapis.com/css?family=Audiowide',
'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js',
'manifest.json',
'app.js',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js',
'script.js'
];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…