Error While Downloading Files In IE

IE The Culprit
IE The Culprit

I was working a PDF Dowload in my application and one fine day move my application to client test system where the application was aired over https. That screwed up my day to find out bug in my application. But finally when i googled for it i found out that IE has screwed up everything for me.

The problem is with enabling no cache headers in response header.

response.setHeader(“Cache-Control”, “no-cache”); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader(“Cache-Control”, “no-store”); //Directs caches not to store the page under any circumstance
response.setDateHeader(“Expires”, 0); //Causes the proxy cache to see the page as “stale”
response.setHeader(“Pragma”, “no-cache”); //HTTP 1.0 backward compatibility

The moment i removed this everthing worked fine. And finnaly made my last laugh.

For More Reference :


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s