fix cahe_type and view source tab in document