JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 5th, 2001, 10:02 PM
jbuckle24 jbuckle24 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Burlington, VT
Posts: 344 jbuckle24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 53 sec
Reputation Power: 13
Facebook
Cache & JavaScript SetTimeout?

Hello,

I know this is going to sound a bit far fetched, but... I was wondering if you are using a JavaScript SetTimeOut call on a page that is cached, will the settimeout continue or restart the countdown script everytime the page is loaded...

For example,

I am using the settimeout function to redirect the page after 24 minutes. It works fine generally in all cases except for people whom do not have the cache set to expire everytime the page is loaded. So in some cases (if the user's page is cached) the sittimeout may occur randomly...

Does this make any sense or am I way off?

Thanks,
-jbuckle24

Reply With Quote
  #2  
Old October 10th, 2001, 11:11 AM
binky's Avatar
binky binky is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: New Zealand
Posts: 1,774 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 58 m 15 sec
Reputation Power: 23
It sounds confusing but I'm guessing you just want it so that the page is a brand new version each time and not one taken from the cache?

Have a look at the META tag for cache-control.

Cache-Control: must-revalidate
Cache-Control: max-age=3600
Cache-Control: no-cache

Have a look at:

http://vancouver-webpages.com/META/FAQ.html#nostale

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Cache & JavaScript SetTimeout?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap