Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6538267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:42:59+00:00 2026-05-25T10:42:59+00:00

Edit: Sorry guys, but I wasn’t seeing this behavior when I came into work

  • 0

Edit: Sorry guys, but I wasn’t seeing this behavior when I came into work the next day and couldn’t reproduce it. Something else must have been going on. I was going to delete the question but you can’t do that anymore. Since there aren’t any upvotes anywhere, no harm done.

I’m pulling data in to a div via a jQuery ajax call. Since I’m using IE9 primarily, I need to disable output caching in jQuery using cache: false, on the ajax call. That produces a URL that looks like:

http://localhost/site/UserDetails.mvc/48d76cdd-da6f-414d-ba63-f24708d351ff?_=1315347866786

What I actually want is:

http://localhost/site/UserDetails.mvc/48d76cdd-da6f-414d-ba63-f24708d351ff

Note the ?_=1315 toward the end of the first one. I’m pretty sure that’s a timestamp that jQuery is adding to prevent output caching. This is breaking my mvc routing, which is expecting a single ID field at the end of the route:

 routes.MapRoute(
          "DefaultNoAction", // Route name
          "{controller}.mvc/{id}", // URL with parameters
          new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
         ); 

So I’m getting a 404 for the URL that ends with the timestamp. I’m pretty new to MVC and I don’t know how to tell the router that any url parameter that is named _ should be ignored. How would I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:42:59+00:00Added an answer on May 25, 2026 at 10:42 am

    Take a look at the ASP.NET MVC: url routing vs querystring thread, where discussed how to handle this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Author's edit: sorry for the confusion on this. I changed the path to another
Which action/method is in PHPUnit equal to in simpleTest: $this->UnitTestCase('message .....') Edit: Sorry for
Is there a .net equivalent to the C++ unexpected()/set_unexpected() functionality? Edit: Sorry--I omitted some
Edit: I am using SqlDataAdapters to fill the data sets. Sorry--I should have been
Edit: This question was written in 2008, which was like 3 internet ages ago.
EDIT: This was formerly more explicitly titled: - Best solution to stop Kontiki's KHOST.EXE
EDIT: This question is more about language engineering than C++ itself. I used C++
Ok guys, I'm really new at python (and programming itself) so sorry for my
I'm usually a LAMP developer, but some .NET work has arrived on my plate
EDIT Sorry for the confusion, here is my updated question. I am using FindBin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.