add Caching headers, fixes sync bug for IE