Click here to Skip to main content
11,811,971 members (73,185 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Cache Browser

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.

Advay Pandya
Posted 1-May-13 2:16am
lighthousekeeper at 14-Nov-13 10:08am
have this issue also...any tips?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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


(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.

Advay Pandya

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

  Print Answers RSS
0 KrunalRohit 319
1 Abhinav S 215
2 Palash Mondal_ 210
3 CHill60 180
4 CPallini 135
0 OriginalGriff 3,893
1 KrunalRohit 2,441
2 CPallini 2,240
3 Maciej Los 2,155
4 ppolymorphe 1,725

Advertise | Privacy | Mobile
Web03 | 2.8.151002.1 | Last Updated 13 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100