Update cachecontrol.js

Adding Support for Process Function Error Handing