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.
In working with the cache control middleware, it seems that it does not play nicely with
express.staticmiddleware. If this middleware isused before thestaticmiddleware, the cache expiry settings fromexpress-cache-controllerwill override any expiry settings provided instatic. When including this middleware afterstaticthings seem to work correctly.It might be useful to at least include this in documentation so users would be aware of this interaction.