fix issues for https://github.com/fengmk2/webcache/pull/2