title: How RestBase wiki handle caching
body: <p>Following the installation of <a href="https://github.com/wikimedia/restbase" rel="nofollow noreferrer">RestBase</a> using standard config, I have a working version of summary API. </p>
  
  <p>The problem that the caching mechanism seems strange to me.
   The piece of code would decide whether to look at a table cache for fast response. But I cannot make it a server-cache depend on some time-constrain (max-age when the cache is written for example). It means that the decision to use cache or not entirely depend on clients.</p>
  
  <p>Can someone explain the workflow of RestBase caching mechanism?</p>
  
  <pre><code> // Inside key.value.js
     getRevision(hyper, req) {
  //This one get the header from client request and decide to use cache 
  or not depend on the value. Does it mean server caching is non-existent?
          if (mwUtil.isNoCacheRequest(req)) {
              throw new HTTPError({ status: 404 });
          }
  //If should use cache, below run
          const rp = req.params;
          const storeReq = {
              uri: new URI([rp.domain, 'sys', 'table', rp.bucket, '']),
              body: {
                  table: rp.bucket,
                  attributes: {
                      key: rp.key
                  },
                  limit: 1
              }
          };
          return hyper.get(storeReq).then(returnRevision(req));
      }
  </code></pre>