title: two differents fastcgi_cache_valid value for nginx
body: <p>I use <code>fastcgi_cache</code> in nginx and I want to use two different period of time caching for different requests.</p>
  <p>For example:</p>
  <pre class="lang-none prettyprint-override"><code>    if ($request_uri ~* &quot;/(api/1|api/2)&quot;)
          {
             set $no_cache 0;
             set $cache_valid 5m;
          }
      ...
      
      fastcgi_cache_valid 200 $cache_valid; // it's not work
      
      fastcgi_cache_valid 200 1m; // it's work
  </code></pre>
  <p>How i can use two different <code>fastcgi_cache_valid</code> time values?</p>