DEV Community

Cover image for A simple way to create a PWA with Blazor WebAssembly

A simple way to create a PWA with Blazor WebAssembly

Bradley Wells on October 17, 2019

This tutorial will demonstrate a simple way to create a Progressive Web App (PWA) from your Blazor WebAssembly app. A PWA is an installable web app...
Collapse
 
mistermag00 profile image
ℳisterℳagoo #Blazor

Nice write-up, thanks Bradley.

In my own application, I use this to keep the browser cache version in sync with my application version.

<ServiceWorkerCacheVersion Condition="'$(Configuration)' == 'Release'">$(Version)</ServiceWorkerCacheVersion>

Collapse
 
fakhrulhilal profile image
Fakhrulhilal M

Does it mean, whenever you publish the new version to the web server, then all installed/cached version will be updated to the latest version again?

Collapse
 
bradwellsb profile image
Bradley Wells

Clever! Great tip 👍

Collapse
 
noahhornak profile image
noah-hornak

Thanks for the very cool article. I'm very excited about Blazor and being able to build a PWA with just .NET. But what is your opinion on using Blazor Server Side or the Blazor client side version that's expected to release at next MSBuild? Do you think that the client side version will be better suited for building PWAs or what would be your thought process for deciding whether to use server side or client side Blazor?

Collapse
 
bradwellsb profile image
Bradley Wells

Hey Noah, there was a graphic one of the presenters shared at .NET Conf 2019 that I thought was helpful when deciding between client-side and server-side Blazor. I'll leave it here:

Collapse
 
xarala221 profile image
Ousseynou Diop

Interesting article, thank you for sharing.