is possible stop owin startup class being called every request images within /content/images
folder?
i finding new dbcontext being new
ed every image request, when there doesn't need authorization checks images.
update:
i created brand new mvc project , found class not being called images within /content/images/
.
so looks if, default, doesn't call when request /content
folder, reason in application does.
is there setting in web.config
or properties of folder configures this?
in config, replace runallmanagedmodulesforallrequests="true"
runallmanagedmodulesforallrequests="false"
. if breaks in application, might have fiddle precondition="managedhandler"
on registered modules, of times property should set false
.
see can't stop firing asp.net module static content details on how property works.
Comments
Post a Comment