如何清除mac上的phantomjs缓存?

red*_*off 1 javascript caching phantomjs pouchdb karma-runner

在用karma测试时,我以某种方式破坏了phantomjs缓存(编写pouchdb测试).如何清除此缓存并返回到我原来的测试环境?

red*_*off 9

我花了几天时间才想出这个,所以我想我会在这里发布,只是

rm -rf ~/Library/Application\ Support/Ofi\ Labs/PhantomJS/*
Run Code Online (Sandbox Code Playgroud)

我希望这可以节省别人的麻烦!