• Hey,

    We have been playing around with Service Worker over the last week and have managed to implement it into WordPress so that it will cache things like the homepage and a few important pages for use offline, we have also made an offline page for everything else, something which we actually think WordPress should do by default, but anyway, my question is does anyone know a way to get Service Worker to cache the latest 5 or so posts?

    Aside from adding them manually to the serviceworker.js, I am unsure how this could be implemented, so anyone who is also looking into this, or already knows would be of great help.

Viewing 1 replies (of 1 total)
  • Can I ask how you managed to get it to work and serve cached files. I cannot get my service worker to server the two files I have cached.

Viewing 1 replies (of 1 total)
  • The topic ‘Caching the latest ~5 posts with service worker’ is closed to new replies.