title: Overwrite Cache-Control: Private in Nginx
body: <p>Just wonder if there is any way to overwrite / drop the response back Cache-Control: private from a proxied remote server. The setup architecture looks like this (yes, it's a reverse-proxy set up):</p>
  
  <p>[my server] --> [remote server]</p>
  
  <p>The setting for my server site-available/default:</p>
  
  <pre><code>server {
  
          listen   80; ## listen for ipv4
          listen   [::]:80 default ipv6only=on; ## listen for ipv6
  
          server_name  localhost;
  
  
          location / {
              if ($arg_AWSACCESSKEY) {    
                  proxy_pass http://localhost:8088;
              }
              try_files $uri $uri/ /index.php /index.html /index.htm;
          }
      # other setting goes here
  }
  </code></pre>
  
  <p>The setting for my server site-available/remote:</p>
  
  <pre><code>server {
          listen   8088; ## listen for ipv4; this line is default and implied
  
          # Make site accessible from http://localhost/
          # server_name localhost;
  
          location / {
                  proxy_pass http://remoteserver;
                  proxy_set_header Host remoteserverhostname.com;
                  proxy_ignore_headers Cache-Control Expires;
                  proxy_pass_header Set-Cookie;
  
          }
  }
  </code></pre>
  
  <p>But Firebug still report the header contains Cache-Control: private. Did I missed something?</p>
  
  <p>Thanks.</p>