add nocache middleware and set nocache in restful response header