I have a problem only in IE where my JQuery filetree cannot be refreshed unless the browser is closed, or temporary internet files is deleted via Tools -> Internet Options
Anyone know of a way so that this particular page never gets cached into temp internet files?
"In current versions of ASP.NET MVC you can simply use OutputCacheAttribute to prevent caching: [OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]"
Which seems to work great (at least for IE8, i'll test on IE6 on monday
Jerrolds
Member
95 Points
123 Posts
How to not store *specific* page(s) in temporary internet files?
Jul 03, 2010 09:57 PM|LINK
I have a problem only in IE where my JQuery filetree cannot be refreshed unless the browser is closed, or temporary internet files is deleted via Tools -> Internet Options
Anyone know of a way so that this particular page never gets cached into temp internet files?
I've tried putting this in the header
<asp:Content ID="Content3" ContentPlaceHolderID="CacheHolder" runat="server"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <TITLE> Pragma No-cache </TITLE> </asp:Content> <body> CONTENT HERE <asp:Content ID="Content4" ContentPlaceHolderID="CacheHolderFooter" runat="server"> <HEAD> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> </HEAD> </asp:Content> </body> </html>As described here: http://support.microsoft.com/kb/222064
Nothing seems to work :(
Preferably a solution for both IE8 and IE6 (yes i still have to support that goddamned browser)
CodeHobo
All-Star
18647 Points
2647 Posts
Re: How to not store *specific* page(s) in temporary internet files?
Jul 04, 2010 12:51 AM|LINK
Take a look at this:
http://stackoverflow.com/questions/1160105/asp-net-mvc-disable-browser-cache
In particulary, look at the NoCache attribute someone created on that thread.
Blog | Twitter : @Hattan
Jerrolds
Member
95 Points
123 Posts
Re: How to not store *specific* page(s) in temporary internet files?
Jul 04, 2010 02:20 AM|LINK
Thanks - this helped alot
User AshleyTate points out:
"In current versions of ASP.NET MVC you can simply use OutputCacheAttribute to prevent caching: [OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]"
Which seems to work great (at least for IE8, i'll test on IE6 on monday
) - thanks!