|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Cache & JavaScript SetTimeout? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|