View counter not chaching
<p>I created view counter as generic handler in ASP.NET here is code, method <code>AddPostView</code> performes simple SQL command like "View = View +1"</p>

<pre><code>public void ProcessRequest(HttpContext context)
        {         
            if (UrlManipulation.IsRoutedValueInt(context.Request["ID"]))
            {
                int PostID = Convert.ToInt32(context.Request["ID"]);

                PostManipulation.AddPostView(PostID);
            }

            context.Response.Cache.SetCacheability(HttpCacheability.Public);

            context.Response.Cache.SetExpires(DateTime.Now.AddMinutes(10));

            context.Response.Cache.SetMaxAge(new TimeSpan(0, 10, 0));

        }

        public bool IsReusable
        {
            get
            {
                return true;
            }
        }
</code></pre>

<p>Here is how I call it in the page markup:</p>

<pre><code> &lt;img id="counter" runat="server" src="" /&gt;
</code></pre>

<p>And I set src dinamicly on page load:</p>

<pre><code>  counter.Src = "/handlers/CountView.ashx?ID=" + post.ID.ToString();
</code></pre>

<p>But I cannot get it to cache, ie. not count additional views after user first visited this site, i tried wrapping it in as css stylesheet but same thing nothing happens, when i run firebug on it, it doesn't even show it under downloaded images or under css but it still hits it and i get another view counted.How can I solve this?</p>
