add cache support and fix css img aboslute path bug