[Archived] Middleware for handling requests for file system resources including files and directories. Project moved to https://github.com/aspnet/AspNetCore
Like it was done in System.Web I'd like to be able to set default headers like max-age per folder.
The first thing I want to do when serving static file is define this header.
An implementation could look for a specific file in the folder the file is served, using the same FileProvider as the options. This can already be done using code by altering the Response but configuration is better in this case IMO.
Like it was done in System.Web I'd like to be able to set default headers like
max-age
per folder. The first thing I want to do when serving static file is define this header.An implementation could look for a specific file in the folder the file is served, using the same
FileProvider
as the options. This can already be done using code by altering theResponse
but configuration is better in this case IMO.