cache the xhtmls and htmls