-
Apr 20th, 2006, 03:21 AM
#1
Thread Starter
Member
How to disable browser caching?
How would i do that? I found some ways on the net like response.expires but it didnt work for me ? Is their anyway i can achieve this? Btw i'm using IE 6.0
-
Apr 20th, 2006, 03:27 AM
#2
Re: How to disable browser caching?
I think this is what you want.
VB Code:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Apr 20th, 2006, 03:28 AM
#3
Thread Starter
Member
Re: How to disable browser caching?
thanx for the super quick response where must i insert that line in my code?
-
Apr 20th, 2006, 03:52 AM
#4
Re: How to disable browser caching?
In your page_load event.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Apr 20th, 2006, 03:55 AM
#5
Thread Starter
Member
Re: How to disable browser caching?
hey dude it didnt work out man the back button still works the same way ny more ideas
-
Apr 20th, 2006, 10:37 AM
#6
Re: How to disable browser caching?
You are looking to prevent going back and forth with the browser's back and forward buttons that steps through the already-fired post back events. That's not the browser's cache. That's a whole different story.
For that, you can use SmartNavigation=True. Make sure it doesn't make conflict with anything else. It's been known to mess things up from time to time.
HTH
HoraShadow
I do like the reward system. If you find that my post was useful, rate it.
-
Apr 21st, 2006, 04:48 AM
#7
Re: How to disable browser caching?
You can also use JS for this, not sure what it is off the top of my head, but the code is out tthere.
WOka
-
Apr 21st, 2006, 12:40 PM
#8
Re: How to disable browser caching?
Something like this?
Code:
<script language="javascript"> history.go(+1); </script>
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Apr 22nd, 2006, 04:09 PM
#9
Re: How to disable browser caching?
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|