Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cache catastrophe

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
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.
 
forum855


General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
Oops! My first post contained some typos, and I also credited my friend with the wrong code. I should have written:
___________________

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.

Unfortunately, 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:
Response.Cache.SetCacheability(HttpCacheability.NoCache)

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 caching for an entire IE session, not just one page.
 
OhioSteve, your question relates to .NET. As onpnt suggested, the proper forum for this question is forum855.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top