What is the reason, that GlobalResponseFilters aren’t run for Razor pages? Any alternatives to achieve the same? And would be nice to mention it in docs…
Thanks, Blaz
The Razor ContentPages are executed directly and don’t go through the normal Request pipeline. They’ll get executed for Razor Views in /Views since they’re executed with the result of a Service.
Only the PreRequestFilters runs everywhere, e.g. in non-ServiceStack services like Custom HttpHanders, Razor Content Pages, static files, etc.