Caching meta data in JavaScript client
<p>I am working with force.com architecture that uses a lot of JavaScript client side.  I need to cache some meta data across page requests. </p>

<p>As far as I'm aware it is impossible to cache JavaScript across page requests as the global name space will be reloaded.  One thing I was thinking that could be done if I was in a Java EE architecture which is ugly but would word be to generate a <code>MetaData.js</code> file with all the meta data at runtime. </p>

<p>This file could be cached across requests and the only cost would be instantiated an object from a self invoking function which is cheap.</p>

<p>However, I can create a <code>MetaData.js</code> file at runtime in force.com so I was wondering is there anything else I could do?</p>
