express-cache-controller icon indicating copy to clipboard operation
express-cache-controller copied to clipboard

Caching directives conflict with (override) express.static

Open mikecbrant opened this issue 7 years ago • 0 comments

In working with the cache control middleware, it seems that it does not play nicely with express.static middleware. If this middleware is used before the static middleware, the cache expiry settings from express-cache-controller will override any expiry settings provided in static. When including this middleware after static things seem to work correctly.

It might be useful to at least include this in documentation so users would be aware of this interaction.

mikecbrant avatar Jul 30 '18 13:07 mikecbrant