#webdevelopment

claralistensprechen3rd@friendica.myportal.social

Sheer popularity for the sake of the numbers is overrated...and it's likely a lot of 'em are bots.


β™² Mike :nixos: - 2024-12-04 02:46:06 GMT

I REALLY don't want to join #Bluesky and love it here on the fedi. But people keep telling me I just won't find enough people here to follow and engage with.If you love #linux #WebDevelopment #php or #elixir #elixirlang #phoenixframework drop a comment here and retoot so I can follow you.

I really love the community here and want to find my people. :)

tord_dellsen@diasp.eu

DWEP technical update

I've been working on the DWEP app, and have just reviewed the service-worker.js file, which is central to PWAs

I decided to use a cache first caching/fetching strategy, with a versioned cache, and with some calls (in the install and activate event handlers) to ensure that the latest version of the service worker itself (and therefore cached resources since the cache version number is located in the service worker file) is used as soon as possible

https://codeberg.org/tord/dwep/src/branch/main/service-worker.js

It seems to be the best option and i don't really see any downside to it. The only thing is that i have to update the cache version every time i make an update to the app

#dwep #CacheStrategy #cache #caching #WebDevelopment #PWA #javascript #programming