Add client cache support in main.bit