schizanon, to fediverse

I'm working on https://schizo.social again. There's still tons of basic client stuff I could work on, like logout, or rendering boosts, but my goal is to build a client for managing multiple #Fediverse accounts; things like syncing following/mutes/etc. Not really trying to build a client you'd use to read. I want to implement #Calckey login, but calckey.social is down. Maybe I should start with handling multiple #Mastodon accounts first? #schizoSocial

schizanon,

Hmm, seems like the 500ing is only when I load the page in an incognito window... it's probably still my #workbox cache in the #serviceWorker, but I'm going to replace the StaleWhileRevalidate strategy with NetworkFirst. This will mean that the page will have to wait for a network response, but it will maintain my offline support so the #PWA install prompt will still appear. #WebDev

nhoizey, to random French
@nhoizey@mamot.fr avatar

Who still thinks writing a Service Worker for basic features (performance with cache, offline fallback) is cumbersome?

Using recipes make it so easy!

Here's the Service Worker for https://pack11ty.dev 😍

https://github.com/nhoizey/pack11ty/blob/main/src/assets/js/service-worker.js

⚓️ https://nicolas-hoizey.com/notes/2023/05/31/2/

nhoizey, to random French
@nhoizey@mamot.fr avatar

If someone is creating service workers with #Workbox recipes and injectManifest, a build with #esbuild, and doesn't have any issues, I'm interested! 😅

I have a very strange issue:

https://github.com/GoogleChrome/workbox/issues/3207

Bonus points if this is with @eleventy

#ServiceWorker

⚓️ https://nicolas-hoizey.com/notes/2023/05/13/1/

nhoizey, to random French
@nhoizey@mamot.fr avatar

Is it ok to use Workbox's injectManifest with the recent recipes warmCache option?

I tried this without success in the Service Worker in Pack11ty:

staticResourceCache({  
 warmCache: self.__WB_MANIFEST,  
});  

Other caches are warmed up, not this one.

#ServiceWorker #Workbox

⚓️ https://nicolas-hoizey.com/notes/2023/05/06/1/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • khanakhh
  • mdbf
  • magazineikmin
  • modclub
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • Durango
  • tacticalgear
  • JUstTest
  • ngwrru68w68
  • everett
  • normalnudes
  • cubers
  • tester
  • thenastyranch
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • megavids
  • anitta
  • Leos
  • lostlight
  • All magazines