Click here to Skip to main content
12,998,892 members (30,374 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 13 May 2015
Copyright © CodeProject, 1999-2017
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