Web Cache Deception

McBride, Michael 1 Reputation point
2021-08-31T04:58:54.153+00:00

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?

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