Run your website offline using Service Workers
HTML-код
- Опубликовано: 8 сен 2024
- 🚑. Make your website work offline using Service Workers 🚑
This video covers how to use service workers to hook into the browsers fetch event and if they are offline, serve them static assets that have been cached on the client :)
If you have any specific content you'd like me to cover please let me know via a comment/DM! 😁
This is the first time I've ever rewatched an intro 😂Great job
😂 thanks!
finally found a great tutorial for this API!
Thank you for sharing this!
I'll like to apologise for taking so long to find your channel sire 🧙🏾♂️
Haha all is forgiven
great video. waiting for the one that updates the cache.
This was really easy to use, thanks for sharing.
Thanks for watching!
Thank you so so much
Thank you, great it works very well. But how to update the caches when there is internet
I may cover that in the future. but essentially what you would do is intercept the http calls and perhaps only use cache when the user is offline
Thanks this is exactly what i needed
Awesome!
Nice funny video and great content!
Thanks!
my old caches are not being deleted when CACHE_NAME is changed, and also, when switched to offline mode my webpage doesn't appear like the video did
Ah, yeah... Don't you just love it, when people make programming tutorials, but then don't add a link to the sources in the description. Basically making anybody wanting to use it, type it off, run the video through OCR or just look for a different video that has sources?! :D
Possible to do this with php?
Yeah👍
is there a way to have a offline website that can actively be used such as receiving a message and sending one back while having no service?
Bro,, i factched errors can you help me??
When i refresh the page , Chrome clear the cache automatically
Maybe you have disable cache enabled?
Will this work for a mobile phone accessing the website?
Yeah
Cool. What about cljs?
I'll get there :)
@@onthecodeagain I mean: Service Workers + shadow-cljs.
@@shegeley yeah I know! I'll try get a video on that.
god
hello why my cache storage is empty
change the directory. remove the / in your '/index....' happened to me
I have an error navigator is not defined
Thats odd. Make sure you've spelled it correctly and see if window.navigator returns anything in console?
@@onthecodeagain I have but everything from my screen does not highlight anything
where is the code for this
I didnt make a repo out of this and dont have the projects anymore
Great
But not showing clearly plz
Hello can you send me a code
If someone creates a git repo for this I'll add it to the description :) dont have the code anymore