Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Redirect fake extension requests that don't have a querystring #8
IIS6 and Classic Pipeline users often use the .ashx fake extension to enable resizing:
However, if the querystring is dropped, the request 404s because ImaegResizer isn't handling it.
A more user-friendly behavior would be to 301 redirect to
Rewriting would offer a path to circumvent other middleware filters, such as the UrlAuthorizationModule. Classic pipeline usage persists, but is not as prevalent.
Usage in integrated mode often happens due to conflicts with CMSes or other middleware for the standard static file extensions. Usage is unlikely to decline significantly.