This is the companion source code for the examples I used on the article "Chega de esperar: Web Workers e a Cache API" posted at Pricefy Labs on Medium.
Let's see those web workers and the Cache API at work. Shall we?
After git checkout
this repository...
You'll need a certificate to spin the server, so:
$ mkdir ./_ssl
$ cd ./_ssl
$ openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
$ http-server ./src/ --ssl --cert ./_ssl/cert.pem --key ./_ssl/key.pem
Go ahead and open the aplication on your prefered Chrome browser.
Well, don't miss Pricefy Labs on Medium.