implemented middleware manifest cache