Where to store the service worker?

  • 0
    I got the idea to add a service worker using a workbox to an existing WordPress project, but faced one problem: where to place it and how to register so that ok would cache not only js and css files from the dist folder in the theme folder, but also product images (of course, with limit on their number)?
    JavaScript Anonymous, Jul 3, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!