4

Can some explain what the "_" value is all about? This is what fiddler is showing me for my MVC 3 page that has a jQuery ajax call on the client.

GET /Services/GetFoodDescriptionsLookup(100)?_=1291727469299 HTTP/1.1

When the URL is constructed in this fashion I don't get back any data, but if I type

GET /Services/GetFoodDescriptionsLookup(100)

this works..

Thank you, Stephen

2
  • That looks very much like a timestamp added to prevent caching. Commented Dec 7, 2010 at 13:23
  • I should clarify that I am getting data back so as not to confuse anyone more than I already am.. :) Commented Dec 7, 2010 at 13:45

1 Answer 1

6

It's added by jQuery to prevent caching when cache:false is set. This is basically a workaround for IE's over-eager caching that will not resubmit an AJAX GET request (unless the caching policy is extremely well-configured).

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

1 Comment

+1 - I'll add that IE might also choose to cache the hell out of it even when it's configured perfectly.

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.