         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()

    "uncss_inline"
    "cacheBust"
    "concurrent:dist"
    "swPrecache"
    "cleanempty"
  ]


      ]
      stripPrefix: rootDir
      verbose: true
    sw_precache.write path.join(baseConfig.cfg.destination + baseConfig.cfg.base, "service-worker.js"), config, callback

  # Project configurations
  grunt.initConfig
    config: baseConfig
    amsf:
      base: ".amsf-cache"
      branch: grunt.option("branch") or "release"
