Hello,<br><br>Look on both examples <a href="http://openlayers.org/dev/examples/cache-write.html">http://openlayers.org/dev/examples/cache-write.html</a> and <a href="http://openlayers.org/dev/examples/cache-read.html">http://openlayers.org/dev/examples/cache-read.html</a><br>

The cache write already do a part of what you seem to look for : download tiles somewhere using a grid calculation.<br>The exemple use local storage but the principle is the same.<br><br>Regards<br><br>ThomasG<br>