404 page not showing for Anonymous users

Topics: Troubleshooting
Oct 31, 2013 at 7:06 PM
Edited Oct 31, 2013 at 7:08 PM
I have the "Orchard.OutputCache" module enabled. If a user is authenticated and they navigate to a page that doesn't exist, they are shown the "NotFound" page correctly. If an anonymous user navigates to a page that doesn't exist, they are shown a completely blank page (the status code is still 404).

From what I can tell, a change was made in commit 0d3325e3381f76de8090ee742628a1d8fe6f6b1f that commented out a few lines of code in the CapturingResponseFilter class. (all references to the stream passed into the constructor were removed). If I uncomment those lines again, it all seems to work as expected.

Was that change intentional? Is it safe to uncomment the code again? What would the repercussions be?