Web Cache Deception

McBride, Michael 1 Reputation point

Having a problem with our classic webforms webapp.

The problem is, if you go to /SensitivePage.aspx/image.jpg, then a web cache server may cache the response because it ends with .jpg. WebForms will allow going to /SensitivePage.aspx/image.jpg, it treats the URL as if it were /SensitivePage.aspx.

How can I change this so going to /SensitivePage.aspx/image.jpg will return a 404 because the file does not actually exist?

A set of technologies in the .NET Framework for building web applications and XML web services.
3,377 questions
{count} votes