$ npm install sw-cacheable-responseThis library takes a Response object and determines whether it's cacheable, based on a specific configuration.
npm install --save-dev sw-cacheable-response
Browse sample source code in the demo directory.
You can find documentation for this module here.