add escape untrusted certificate

add request chaching for offline  forked form h-r