title: Caching Token from auth_request
body: <p>I want to cache the token from my request header field Authorization.</p>
  
  <p><code>Authorization :  Bearer abcdefghijklmnopqrstuvwxyz</code></p>
  
  <p>My goal is, that I don't have to validate every request on the  validation-server. If the Authorization-Token is cached (and valid), than the request should call the API without validation.</p>
  
  <pre><code>location /main {
              auth_request /auth;
              proxy_ignore_headers Cache-Control;
              proxy_pass http://API;
              proxy_http_version 1.1;
  
          }
  
  
  location /auth {
              internal;
              proxy_cache my_cache;
              proxy_ignore_headers Cache-Control;
              proxy_cache_key "$http_authorization";
              proxy_pass https://validationserver;
              proxy_pass_request_body off;
              proxy_set_header Content-Length "";
  
          }
  </code></pre>
  
  <p>This is my setup, but this does not work.</p>
  
  <p>I hope you can help me.</p>
  
  <p>Greetings!</p>