This project has moved. For the latest updates, please go here.

Static files caching

Dec 13, 2013 at 3:26 PM
Hi,

I am trying to implement caching using HTTP headers like Cache-Control. I am hosting web api and static files in Console app. In some of previous versions there was property HeadersToSet, I think. Now, I can see something called DefaultContentType in StaticFileOptions, and not sure how to use it. I am using the nightly build version of Owin.StaticFiles.

Can you help me?
Coordinator
Dec 13, 2013 at 5:32 PM
HeadersToSet was replaced by the OnPrepareResponse callback. This is now available on nuget.org as 2.1.0-RC1. Let us know how that works for you.
Marked as answer by pedjanbg on 12/17/2013 at 12:34 AM
Dec 17, 2013 at 8:35 AM
Thank you.