title: How to Cache image when src is some action which returns image?
body: <p>There are lots of questions about how to force the browser to cache or not to cache any image. But, I am facing slightly different situation. In several places of my web page, I am using following code for the images.</p>
  
  <pre><code>&lt;img title="&lt;%= Html.Encode(Model.title)%&gt;" 
    src="&lt;%= Url.Action(MVC.FrontEnd.Actions.RetrieveImage(Model.SystemId))%&gt;"/&gt;
  </code></pre>
  
  <p>So, in the generated HTML it is like</p>
  
  <pre><code>&lt;img title="blahblah" src="http://xyz.com/FrontEnd/Actions/RetrieveImage?imageId=X"&gt;
  </code></pre>
  
  <p>Where <code>X</code> is some integer. I have seen that though the browser (IE or Mozilla) caches images by default, it is not caching images generated by above method. </p>
  
  <p>Is there any way I can tell browser to cache images of above type?</p>
  
  <p>Thanks in advance.</p>