Click to See Complete Forum and Search --> : force cache


bisqui
02-08-2003, 11:06 PM
Ok, I know how to disable caching, but is there a way to force caching if a user has disabled it in IE? For example, if they set the browser to "check for newer versions of stored pages every visit to the page". I've tried

meta-equiv="expires"

and

<?php
header("Expires: Sun, 23 May 2323 23:23:23 GMT");
header("Last-Modified: Sun, 23 May 1923 23:23:23 GMT");
?>

but neither seems to work. If there's no way around this, is there a way to detect the users' cache setting?

pyro
02-08-2003, 11:27 PM
Originally posted by bisqui
is there a way to force caching if a user has disabled it in IE?Why do you want to muck with visiter's settings? If they don't want the page to catche, why catche it?

bisqui
02-08-2003, 11:49 PM
Because my site uses a lot of cached images and looks clunky if caching is disabled. Plus, I'm not entirely confident in the ability of the user to know anything about caching and why they would/wouldn't want it disabled. It seems silly to me to re-request a rollover image for a navbar everytime. If you can give me a good reason for that, I'd like to hear it.

pyro
02-09-2003, 12:01 AM
Either way, catching is enabled as a default, so we're going to have to asumb that if it is disabled, the user knew what he was doing. I don't know of anyway around it, and if there is one, it is bound to be a hack. How about pre-loading your images? It will make your rollovers work more smoothly anyway.

bisqui
02-09-2003, 12:16 AM
yeah, everything is preloaded, but if the user set the browser to check for newer versions everytime, precaching is useless. That's the problem. I'm wondering if there is any way to detect this and show an alert.