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 9153261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:14:44+00:00 2026-06-17T12:14:44+00:00

Suppose I have a asp.net mvc 3 application with an interface named /getdata ,

  • 0

Suppose I have a asp.net mvc 3 application with an interface named /getdata, different users connect to the server by my PC client software and get private data using this interface. Different users are identified by their own well-encrypted tokens.enter image description here

Now the problem is ClientA told us he got another user’s data. From the log of ClientA we found he got ClientB’s (but they don’t know each other, they can’t share accounts). I looked through the code of my web application but couldn’t find any chance to mix their data.

So I wonder can this happen:

(1) ClientB starts a http request to http://mysite.com/getdata, with his token in the http header, via a web proxy.

(2) The web proxy accesses my web server, get ClientB’s data.

(3) My web server approves the request and returns ClientB’s data, since everything is correct.

(4) ClientB gets his data and correctly displayed

(5) Almost the same time after ClientB get his data, ClientA starts a same request, with ClientA’s token in the header.

(6) The web proxy find the url that ClientA requesting is the same as ClientB’s, and the result is still in cache, then returns ClientB’s data. Then ClientA gets another’s data.

In my web app interface, at the very beginning I already set all the response no-cache, max-age=0 and so on to prevent client-side cache. My question is:

  1. Can the scanario in the image happen?

  2. If yes, how can I prevent the web proxy returning cached data? I can’t modify the program of the PC client, and web proxy servers are out of my control.

  3. If no, what’s the possible reason that A is getting B’s data?

  • 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-06-17T12:14:45+00:00Added an answer on June 17, 2026 at 12:14 pm

    Can the scanario in the image happen?

    Yes, this is possible if the clients are using the GET verb to access the /getdata endpoint.

    If yes, how can I prevent the web proxy returning cached data? I can’t modify the program of the PC client, and web proxy servers are out of my control.

    Decorate the controller action that is serving the GetData endpoint with a [NoCache] attribute to ensure that no data gets cached downstream.

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

Sidebar

Related Questions

Suppose I have a DB full of health records and an ASP.NET MVC application.
I m working on ASP.NET MVC 4 application.I have a dashboard and my users
I have a file upload function in my asp.net mvc application that allows users
Suppose I have an action that returns an rendered asp.net mvc control and send
How do I handle autopoatback in ASP.NET MVC? Suppose I have a textbox. I
I have a problem that I suppose comes from my ASP.NET MVC project using
I have an ASP.NET MVC application. In the application, I have a bunch of
I have a ASP.NET MVC web application that is supposed to be sold in
I have an ASP.NET MVC application which uses Entity Framework to get data. I
I have an ASP.NET MVC 3 application with the following web.config settings. <authentication mode=Forms>

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.