Add cache mode API for https://github.com/slightlyoff/ServiceWorker/issues/412