Prevent caching in IE 7
===

I'm developing an application that utilizes PDFLib to serve my users dynamic PDF files summarizing their accounts and need to ensure that these pages are not being cached (some sensitive data is passed, and I can't have that stored in cache for security reasons).

I have tried using the following code:

    Header("Expires:-1");
    Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    Header("Cache-Control: no-store, no-cache, must-revalidate");
    Header("Cache-Control: post-check=0, pre-check=0", false);
    Header("Pragma:no-cache");

First of all, I have no surefire way of testing that IE7 is not caching the page, so my first question is "how do I test to ensure that my no-cache headers are working?"

Secondly, after I added these lines to my code, the PDF ceased displaying in IE7. When I remove the lines, it works fine. Anyone have any ideas on how to avoid this behavior?

Thanks in advance!