Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - JavaScript - Exception Occured
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

JavaScript - Exception Occured

 Post Reply Post Reply Page  <123
Author
VBScript View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2004
Location: United Kingdom
Status: Offline
Points: 219
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBScript Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2004 at 6:49am

Thanks Gullanian.


 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2004 at 2:22pm
It's almost impossible to prevent all instances of page caching but the method gullanian posted is the best solution available.
If your audience is very technical though, they may haved played with settings enough to defeat it. Also, some "speed" internet services for dial-up use modified browsers and/or non-standard caches for performance

Lead me not into temptation... I know the short cut, follow me.
Back to Top
VBScript View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2004
Location: United Kingdom
Status: Offline
Points: 219
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBScript Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2004 at 6:08am
It was for my own forum login page because i didnt want the browser to cache it
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2004 at 6:33am

Another solution is to put some random characters in the querystring, because the URL changes each time it will not be cached by proxy servers etc. something like

<a href=mypagethatisnotcached.asp?CachePreventer=<%= Guid.NewGuid.ToString%>>My non cached page</a>

That will only work in ASP.NET but its the same principal for ASP

Back to Top
 Post Reply Post Reply Page  <123

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.