title: How to save scripts, images and css files into browser cache?
body: <p>I have been trying to enable Caching for my web-page. I find-out so much post related to Caching static file in browser cache, but i did't get success.</p>
  
  <p>I try for both server side or client side code for it:</p>
  
  <p><strong>SERVER SIDE</strong> </p>
  
  <p>I tried to put code for set-up a "Cache-Control" header on server side page-load(write code in C#) :</p>
  
  <pre><code>DateTime dt = DateTime.Now.AddMinutes(30);
  HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
  HttpContext.Current.Response.Cache.SetExpires(dt);
  HttpContext.Current.Response.Cache.SetMaxAge(new TimeSpan(dt.Ticks - DateTime.Now.Ticks));
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/945898/cache-control-headers-in-asp-net">Reference</a> </p>
  
  <p><strong>CLIENT SIDE</strong></p>
  
  <p>In javascript after some googling i find a "Preloading images" technique , but applying this code also not give me correct solution of storing file into cache.  </p>
  
  <p><a href="https://stackoverflow.com/questions/9962580/fast-loading-of-many-images-on-html/9962592#9962592">Reference</a></p>
  
  <p><strong>HTML META TAGS</strong></p>
  
  <p>Added following tags in my page header:</p>
  
  <pre><code>&lt;meta http-equiv="Cache-control" content="private"/&gt;
  &lt;meta http-equiv="EXPIRES" content="Wed, 16 oct 2013 11:12:01 GMT"/&gt; 
  </code></pre>
  
  <p>did't get success.</p>
  
  <p><a href="http://www.i18nguy.com/markup/metatags.html" rel="nofollow noreferrer">Reference</a> </p>
  
  <p>Can any one tell me what i am doing wrong here?</p>
  
  <p>And any one suggest me for perfect solution/full tutorial for enabling cache to store static files into browser cache.</p>
  
  <p>Thanks in advance....!!!!    </p>