title: Cache a django view that has URL parameters
body: <p>I have recently implemented Django's excellent cache framework. However from what I understand Django will not cache a view that is passed parameters in a get request.
  I have an Ajax view that is passed get parameters that I would like to cache for X seconds, what would be an easy way to do this?</p>
  
  <p>In psuedo code I currently have a URL:</p>
  
  <pre><code>http://mysites/ajaxthing/?user=foo&amp;items=10
  </code></pre>
  
  <p>I would like to cache any this url as long as it has the same get parameters.</p>
  
  <p>I'm currently using the cache decorators in my view:</p>
  
  <pre><code>myview(stuff)
  
  myview = cache_page(myview, 60 * 3)
  </code></pre>
  
  <p>I did read about <a href="http://docs.djangoproject.com/en/dev/topics/cache/#using-vary-headers" rel="noreferrer">django's vary headers</a> but it went a little over my head, and I'm not even sure its the correct solution</p>