fix bugs and set user-key's expire
static resource