jQuery load file function triggers only in one situation
<p>My jQuery script below works perfectly on all devices and PC except Windows Phone. I think it's a pretty standard coding but it gives me a problem. The <code>#feed</code> with the engine.php in it, does not update when I press refresh. ( only on Windows Phone)</p>

<p>A workaround I found is that if I <code>cap +=1;</code> on the <code>#refresh</code> click function then it works.</p>

<p>I am using the latest jQuery.</p>

<p>How can I fix this? Is there anything special about Windows Phone to make use of it ? It seems that there is something like cache, because when I refresh the page it does not chaneg. When I close the tab and open it again it takes me to the updated page.</p>



<pre><code>&lt;script type="text/javascript"&gt;
var cap = 18;
$(function() {
    function loadfeed() {
        $('#feed').load('engine.php?cap=' + cap, function() {
        $("#loadmore").val('Show More');
        });
    }
    loadfeed();

    $("#refresh").click(function() {
        loadfeed();
    });

});
&lt;/script&gt;


&lt;div id="nav_bar"&gt;
&lt;a href="#" id="refresh"&gt;refresh&lt;/a&gt;
&lt;/div&gt;
</code></pre>
