title: HTTP Cache-Control and params order
body: <p>Why browsers cache data, don't send request to server, <strong>only</strong> if query parameters in url are in same order?</p>
  
  <p>For example if request to </p>
  
  <blockquote>
    <p>/product?q=phone&amp;cat=1</p>
  </blockquote>
  
  <p>send in response header <em>Cache-Control:max-age=60</em></p>
  
  <p>the next request</p>
  
  <blockquote>
    <p>/product?cat=1&amp;q=phone</p>
  </blockquote>
  
  <p>request is send to server, but should retrieve data from cache</p>
  
  <p>Also some frameworks recommend</p>
  
  <blockquote>
    <p>If you are caching requests that use a large number of query string
    parameters, consider sorting them to ensure that the request is
    properly cached. </p>
    
    <p>By ordering your params, you can be sure the cache
    key will be consistent across requests and you are caching
    effectively.</p>
  </blockquote>