Don't know about cache wrapping libraries... I know e.g. Webpack has an offline plugin thing that works with either AppCache or SW.