aspnet / StaticFiles

[Archived] Middleware for handling requests for file system resources including files and directories. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
114 stars 72 forks source link

Headers configuration file #188

Closed sebastienros closed 6 years ago

sebastienros commented 7 years ago

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.

aspnet-hello commented 6 years ago

This issue was moved to aspnet/Home#2448