I have implemented the caching using the following code:
require("dotenv").config() const workboxBuild = require("workbox-build") const {