Caching remote resources – CORS or not

One of the Mobile Web Specialist students I’m mentoring came across the issue of caching remote resources from her Service Worker and I think it’s worth a little explanation. The course project includes some resources fetched from an external service and the application was throwing an exception, as these resources were not cached. It’s actually two issues, but let’s see what happens when we try to cache items from a remote origin.



Tagged with
Comment

Create a Progressive Web Application

Progressive Web Applications are absolutely awesome and they will just get better and better. In my previous post I have shown how to implement caching using a ServiceWorker. Working offline is a big chunk of PWAs, now let’s add the missing pieces.



Tagged with
Comment

Implementing a Service Worker

I listened to a Udacity course on offline first and it was sometimes fairly hard to follow the implementation of a Service Worker. Since then I became a lot more familiar with this topic and rest assured, offline-first is an awesome experience. And actually, it’s a lot simpler to implement the basic functionality, than I thought.



Tagged with
Comment