Downloading the plain text or xml gradebook exports over SSL yields an error in IE. The related KB article from Microsoft describes the problem:
http://support.microsoft.com/kb/316431/en-us
Moodle's filelib.php avoids the problem by setting different cache options when the base URL for the site includes 'https://'