You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to follow along with the section of the tutorial for downloading an application in the background, but when using using npm run server on one terminal window and npm start on another, I get errors in the Chrome console about failed requests and my cache storage is empty unless I don't include the bundled files. Can someone look into why this is occurring?
Also, it's worth noting that after I pulled the 2-download-and-install branch, I was getting errors when attempting to register the service worker because src/sw.js was not included in the assets array of the angular.json file.
EDIT: From my understanding, *.bundle files are no longer created by newer versions of the angular-cli. Can the sw.js file be updated to reflect the correct files?
EDIT2: When I was attempting the next lesson (Using Service Workers To Implement a Cache Then Network Fetch Strategy), taking the page offline and then refreshing would cause the page to crash instead of loading without the courses content. I was able to resolve this by adding the /runtime.js file to the cache, which was not described in the video; can this be added to sw.js?
The text was updated successfully, but these errors were encountered:
lin-brian-l
changed the title
*.bundle.jsBranch '2-download-and-install' does not work
'*.bundle.jsBranch' files in '2-download-and-install' cannot be cached
Nov 25, 2018
lin-brian-l
changed the title
'*.bundle.jsBranch' files in '2-download-and-install' cannot be cached
'*.bundle.jsBranch' files in '2-download-and-install' not created
Nov 25, 2018
Hello,
I'm attempting to follow along with the section of the tutorial for downloading an application in the background, but when using usingnpm run server
on one terminal window andnpm start
on another, I get errors in the Chrome console about failed requests and my cache storage is empty unless I don't include the bundled files. Can someone look into why this is occurring?Also, it's worth noting that after I pulled the
2-download-and-install
branch, I was getting errors when attempting to register the service worker becausesrc/sw.js
was not included in theassets
array of theangular.json
file.EDIT: From my understanding,
*.bundle
files are no longer created by newer versions of theangular-cli
. Can thesw.js
file be updated to reflect the correct files?EDIT2: When I was attempting the next lesson (Using Service Workers To Implement a Cache Then Network Fetch Strategy), taking the page offline and then refreshing would cause the page to crash instead of loading without the courses content. I was able to resolve this by adding the
/runtime.js
file to the cache, which was not described in the video; can this be added tosw.js
?The text was updated successfully, but these errors were encountered: