Clear cache on the teardown process, and clear cache on the startup on Gecko 2.0 or later