G
Guest
1. Is there a way for a JavaScript (or any client side
script) to detect whether a visitor has changed their
browser cache setting from "Automatically" to "Every visit
to the page"?
The problem: When using JavaScript to do image swaps
dynamically, everything is fine ---IF--- the browser is
set to cache. However, many web developers (and any user
that has ever called tech support asking "why can't I see
my latest changes?") often turn off the cache setting so
they can develop. If a browser with the cache turned off
hits a dynamic image swap (even one with precache
efforts... ie, new Image object, set it's .src, check
it's .readyState for "complete", etc) you can watch the
GET requests pile up in the access log. So, ...if only
the script could let the author say "Sorry, your browser
cache setting is set to "Every visit to the page", but you
need to change it back to "Automatically" or "Never" and
hit "Reload"... then I'll go ahead and render this
animation for you." (anyone know a way to do this?)
(I already tried checking the Image's .readyState before
and after the dynamic swaps... it always
returns "complete" after the initial loading has succeeded)
script) to detect whether a visitor has changed their
browser cache setting from "Automatically" to "Every visit
to the page"?
The problem: When using JavaScript to do image swaps
dynamically, everything is fine ---IF--- the browser is
set to cache. However, many web developers (and any user
that has ever called tech support asking "why can't I see
my latest changes?") often turn off the cache setting so
they can develop. If a browser with the cache turned off
hits a dynamic image swap (even one with precache
efforts... ie, new Image object, set it's .src, check
it's .readyState for "complete", etc) you can watch the
GET requests pile up in the access log. So, ...if only
the script could let the author say "Sorry, your browser
cache setting is set to "Every visit to the page", but you
need to change it back to "Automatically" or "Never" and
hit "Reload"... then I'll go ahead and render this
animation for you." (anyone know a way to do this?)
(I already tried checking the Image's .readyState before
and after the dynamic swaps... it always
returns "complete" after the initial loading has succeeded)