Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am getting caching issue with the browser "Internet Explorer".

My web application generates pdf files and I have a results page with links to those PDFs.

If I refresh page then it deletes the old file and re-generate the new pdf file.

But when I click on the link using "Internet Explorer" then it shows the old pdf file, this file is not there on that path.

If I copy same path on different browser(Firefox, crome, safari) then it works fine.

So, I think this is caching issue. If I close browser(IE) and re-open it then it works.

Please advise me to fix this issue.

Thanks
Advay Pandya
Posted
Comments
lighthousekeeper 14-Nov-13 10:08am    
have this issue also...any tips?

1 solution

The issue is fixed by adding a query string containing time stamp.
Like: If my file name is "hello.pdf" then we can pass in the below way

mywebsite/hello.pdf?051320151220000

(pdfname?time stamp)

by using this way, the browser will think that this is a fresh URL. So it will show the fresh pdf instead of cached pdf.

Please let me know for any concern or query.

Thanks
Advay Pandya
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900