Static file Docs clairification (#11902)

pull/11907/head
Ryan Brandenburg 2019-04-08 16:20:13 -07:00 committed by Luke Latham
parent 88dba0b980
commit b9288f8ffd
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ author: rick-anderson
description: Learn how to serve and secure static files and configure static file hosting middleware behaviors in an ASP.NET Core web app.
ms.author: riande
ms.custom: mvc
ms.date: 12/18/2018
ms.date: 04/08/2019
uid: fundamentals/static-files
---
# Static files in ASP.NET Core
@ -210,7 +210,7 @@ If no default-named file exists in the *MyStaticFiles* directory, *http://\<serv
![Static files list](static-files/_static/db2.png)
> [!NOTE]
> `UseDefaultFiles` and `UseDirectoryBrowser` use the URL *http://\<server_address>/StaticFiles* without the trailing slash to trigger a client-side redirect to *http://\<server_address>/StaticFiles/*. Notice the addition of the trailing slash. Relative URLs within the documents are deemed invalid without a trailing slash.
> <xref:Microsoft.AspNetCore.Builder.DefaultFilesExtensions.UseDefaultFiles*> and <xref:Microsoft.AspNetCore.Builder.DirectoryBrowserExtensions.UseDirectoryBrowser*> perform a client-side redirect from `http://{SERVER ADDRESS}/StaticFiles` (without a trailing slash) to `http://{SERVER ADDRESS}/StaticFiles/` (with a trailing slash). Relative URLs within the *StaticFiles* directory are invalid without a trailing slash.
## FileExtensionContentTypeProvider