Configuring cache like Cordova does