title: JS file in chrome is never cached
body: <p>I dynamically create javascript files on the server that contain translated strings.
  <strong>When I look at chrome inspector this file never gets cached, (other actual JS files that are in the Scripts folder do get cached)</strong>
  *<em>Why isn't it?</em>* </p>
  
  <pre><code>&lt;script src="somepath/Scripts/translate-nl-BE.js"&gt;&lt;/script&gt;
  or
  &lt;script src="somepath/Scripts/translate-en-GB.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>this is mapped to the following MVC action:</p>
  
  <pre><code>[HttpGet]        
  public ActionResult TranslateJS(string culturecode) {
       ViewBag.JSCulture = culturecode;
       Response.ContentType = "text/javascript";
       return PartialView("TranslateJS");
  }
  </code></pre>
  
  <p>here's the view:</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;dynamic&gt;" %&gt;
  &lt;%
      string culturecode = ViewBag.JSCulture;
  %&gt;
  var translations = &lt;%=new System.Web.Script.Serialization.JavaScriptSerializer().Serialize((ViewBag.Translate as List&lt;ERPManager.TranslationService.FlatTranslation&gt;).Where(x=&gt;x.CultureCode==culturecode).ToDictionary(t=&gt;t.Key,f=&gt;f.Value)) %&gt;;
  </code></pre>
  
  <p>this basically just serializes a json array (I know this looks dirtyer than just returning a jsonresult but i can't ajax call this file, it need sto be linked into a script tag</p>
  
  <p>This is the response I get from the server:</p>
  
  <pre><code>Cache-Control:private
  Content-Length:10987
  Content-Type:text/javascript; charset=utf-8
  Date:Thu, 04 Apr 2013 10:15:11 GMT
  Server:Microsoft-IIS/7.5
  X-AspNet-Version:4.0.30319
  X-AspNetMvc-Version:3.0
  X-Powered-By:ASP.NET
  </code></pre>
  
  <p>here's a preview of the file that get's returned: it's basically just a key value dictionary of translations.</p>
  
  <pre><code>var translations = {"vertaald":"Vertaald","gerelateerd":"Gerelateerd","details":"Details"};
  </code></pre>