I have an asp.net application running in IE on an intranet. I use vb in the code-behinds.
Some of my web pages have hyperlinks that go to .pdf files. IE opens the pdf directly. The pdf is not embedded.
These .pdf files are recreated frequently. So it is essential that the user see the latest version.
IE caches the .pdf files, so the users do NOT see the latest version.
A colleague suggested putting this code in the page with the hyperlinks:
<%@ OutputCache Duration="0" Location="None" VaryByParam="none" %>
That did NOT fix the problem. I suspect that it did not fix the problem because .pdfs are not displayed on that page.
So I need a way to shut off IE for an entire IE session, not just one page.
Some of my web pages have hyperlinks that go to .pdf files. IE opens the pdf directly. The pdf is not embedded.
These .pdf files are recreated frequently. So it is essential that the user see the latest version.
IE caches the .pdf files, so the users do NOT see the latest version.
A colleague suggested putting this code in the page with the hyperlinks:
<%@ OutputCache Duration="0" Location="None" VaryByParam="none" %>
That did NOT fix the problem. I suspect that it did not fix the problem because .pdfs are not displayed on that page.
So I need a way to shut off IE for an entire IE session, not just one page.