title: How to set nginx cache headers to never expire?
body: <p>Right now I'm using this:</p>
  
  <pre><code>location ~* \.(js|css)$ { # |png|jpg|jpeg|gif|ico
    expires max;
    #log_not_found off; # what's this for?
  }
  </code></pre>
  
  <p>And this is what I see in firebug:</p>
  
  <p><img src="https://i.stack.imgur.com/AF5He.jpg" alt="enter image description here"></p>
  
  <p>Did it work? If I didn't get it wrong, my browser is asking for the file again, and nginx is answering 'not modified', so my browser uses the cache. But I thought the browser shouldn't even ask for the file, it already knows it will never expire.</p>
  
  <p>Any thoughts?</p>