cofoundry icon indicating copy to clipboard operation
cofoundry copied to clipboard

Robots.Txt: Static file does not respect DebugSettings.DisableRobotsTxt

Open HeyJoel opened this issue 7 years ago • 0 comments

If we add a robots.txt static file to the wwwroot content folder, it is always served even if DebugSettings.DisableRobotsTxt is set to true. This is because static files are served before the mvc middleware is invoked.

We'd need to adapt the StaticResourceFileProvider so it could be configured to filter out certain files like robots.txt similar to FilteredEmbeddedFileProvider.

HeyJoel avatar Jun 05 '17 14:06 HeyJoel