KevinDockx / HttpCacheHeaders

ASP.NET Core middleware that adds HttpCache headers to responses (Cache-Control, Expires, ETag, Last-Modified), and implements cache expiration & validation models
MIT License
271 stars 57 forks source link

BREAKING CHANGE: UseHttpCacheHeaders must be added between UseRouting and UseEndpoints #98

Closed KevinDockx closed 3 years ago

KevinDockx commented 3 years ago

Allow using the endpoint routing information - for that, the call into UseHttpCacheHeaders() MUST be added between UseRouting and UseEndpoints.

app.UseRouting(); 

app.UseHttpCacheHeaders();

app.UseEndpoints(...);
KevinDockx commented 3 years ago

Required - https://github.com/KevinDockx/HttpCacheHeaders/commit/8154cc0b7febaf6ee7c8a043311736c14a71ad77