Q:

Deleted javascript file still running

I have a page with button on it. When click the button jquery start running. It calls a function using ajax. I change the  js file on project and try to see whats happening in localhost but js file is still runs old version before i changed and i can see on page source old version. why i can not change the file?
    $(this).click(function (e) {
        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: "test.aspx/function",
            data:  $(this).text(),
            dataType: 'Json',
            success: function (Result) {
                Result = Result.d;
                data = Result;      
            }
        });
    };

i want to change data but it still running as above
data: $(this).parent().text(),

A:

If you try to reload the test.aspx/function that is ajax called, you can open the developer tools (right click on page, click on inspect).
After the developer tools have been open, click on reload and keep that click until a menu opens. There click on "Hard Reload", or even the Empty Cache and Hard Reload

Other way is to use cache of  jQuery ajax call for your tests.
And one other way is to disable the page cache for test.aspx/function on code behind. For example add that on your response.
    Response.Cache.SetExpires(DateTime.UtcNow.AddYears(-4));
    Response.Cache.SetValidUntilExpires(false);

