How can i make a page that gets autometicaly chached by browsers after first time load. Page background and images are driven by CSS. Browsers always refreshing the page but not caching. How to force caching?? Please help.
This is a very good technique, and I've been using it for quite sometimes now... the best way is to put it at the top... this is also a great replacement/alternative for image or any document preloader <div style="display:none;"> <put a bunch of image here...> </div> Code (markup): cheers!
well, considering your site might be viewed by any number of browsers, on any number of platforms I'd say that there's no reliable way to for anything. What happens if I load your site up in something like Lynx? What reason do you have for desiring to force page caching - maybe there's another wiser solution to your problem. Example on why it wouldn't work, my friend is paranoid and everytime she closes firefox, her history, cache and passwords are deleted. Every single time she closes a window.
What is it you hope to solve by forcing page caching? I don't think there is a reliable way to force page caching in all browsers on all platforms, but there might be a better solution to the problem besides page caching at all. What is the problem you believe forced page caching will solve?