         push: false
 
   # Custom tasks
-  grunt.registerMultiTask "swPrecache", ->
+  grunt.registerMultiTask "sw_precache", ->
     done = @async()
-    cacheId = @data.cacheId
+    handleFetch = @data.handleFetch
     rootDir = @data.rootDir
-    destDir = @data.destDir
-    handleFetch = @data.handleFetch
-    writeServiceWorkerFile cacheId, rootDir, destDir, handleFetch, (error) ->
+    writeServiceWorkerFile rootDir, handleFetch, (error) ->
       if error
         grunt.fail.warn error
       done()

  # Get deploy target, see `_deploy.yml` for more info
  deploy_env = grunt.option("env") or "default"

  writeServiceWorkerFile = (cacheId, rootDir, destDir, handleFetch, callback) ->
    config =
      cacheId: cacheId
      handleFetch: handleFetch
      logger: grunt.log.writeln
      staticFileGlobs: [

        new_name: grunt.option("theme") or "<%= amsf.theme.current %>"
        new_url: grunt.option("url") or "<%= amsf.theme.current_url %>"

    sw_precache:
      dist:
        handleFetch: true
        rootDir: "<%= config.dist %>"

    coffeelint:
      options:
