]> git.ardis.lu - ardislu.dev/commit
Add service worker to cache CMS responses
authorArdis Lu <ardisglu@gmail.com>
Mon, 29 Mar 2021 02:46:57 +0000 (19:46 -0700)
committerArdis Lu <ardisglu@gmail.com>
Mon, 29 Mar 2021 02:46:57 +0000 (19:46 -0700)
commit187058899963da8ee5bef62181bc5c81e4e63e86
treeca08b83ec4c48e66581c23792f1d760446eaaba5
parent04927f41f9a9e5bf112b9cf1abb5ee637d407dd7
Add service worker to cache CMS responses

My google-api-proxy takes 1-2 seconds to serve content, which is not acceptable. The service worker will automatically cache and serve the last response from the CMS.
script.js
sw.js [new file with mode: 0644]
This page took 0.035622 seconds and 4 git commands to generate.