0

I am using below code for making ajax request. I am trying to determine request are cached or not by using chrome tool. In request tab i see all datas always pulled from server and there is no any "cache" in status text column.

How can i detect that request are cached or not. And I think result are not cached so what is wrong on my code ?

        $.ajax({
            url: $(this).attr('href'),
            dataType:'html',
            cache:true,
            success: function (data) {
            } 
        });

1 Answer 1

1

cache is by default set to true for HTML. If you sent to false jQuery adds a parameter in a query as in '_=201105XXXX".

If the query was not part of the URL, it means that the request page was cached.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.