title: Elegant way to serve static resources from memory in Spring / Servlet / Tomcat?
body: <p>Suppose I want to improve performance by loading whole contents of <code>.css</code>, <code>.js</code> and some other files (favicon, some images) directly from RAM memory without hitting disk.</p>
  
  <p>I can just write servlet/controller which will load those files on context init or first request and cache in simple <code>String</code>, but <strong>is there any standard already made solution to serve selected static resources from RAM in Spring, Servlets or Tomcat specification?</strong></p>
  
  <p>It would be nice to support proper headers also (cache-control etc.).</p>