IE11 cannot delete cached pdf file

Dear Sir,

Our company website contains some static PDF file. These PDF files will be replaced quarterly with the same filename.

Users found that the PDF content remain unchanged. IT support told them to clear the IE cache (internet options -> Browsing history -> delete -> all checked)  and download the PDF file but the file still the same.

We opened the "Temporary internet Files" folder, we have found that the PDF file is still there after the delete.

Therefore, we select all the files and press delete button. The file is now "real" deleted. The users can read the updated PDF files.

What's going on? Why this happens? Is it a IE bug? Please suggest.

Thank you very much.

With regards,
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
It is not unusual for files to be cached and seem to be difficult to get rid of.  This isn't just a problem for IE either.  I would recommend that the replacement files include the date at the end of the filename so they won't match the files in the browser caches.  Something like "Company2015-1.pdf" where the "-1" could mean the first quarter of the year and "-2" for the second quarter.
Sudeep SharmaTechnical DesignerCommented:
You could rather provide them a small batch script which could wipe all the data which is inside the "Temporary internet Files" folder.
All they have to do is run it once before start working, or when they need the new content and not the cached ones.

del /f /s /q "%UserProfile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\"

I have tested the above and it works on Windows 7 64bit. But addition to it are welcomed.

Save the above line on a notepad and save the file with bat extension and ask the User's to run it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WatawAuthor Commented:
Dear All,

Any way to trick iis server not cache PDF file only? We are using IIS 8 on Windows 2008 R2. Thank you.

With regards,
Dave BaldwinFixer of ProblemsCommented:
I thought you said that IE was caching the file.  That's not something that IIS is doing.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.