Closed lukerogers closed 7 years ago
Sorry for the slow response, i have merged and published a new nuget package. But sadly i don't have the environment to verify that it works so could you check it out and close this if it works as intended.
It works for me.
If you try to pass in StaticFileOptions that include setting the caching headers, they don't work since a new delegate is created. For example, if you pass in
It won't work because it is overwritten in CompressedStaticFileMiddleware.cs
The original value needs to be stored and invoked.
I created a pull request that addresses this issue #6 Adding ability to execute OnPrepareResponse that is passed in