You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
In working with the cache control middleware, it seems that it does not play nicely with
express.static
middleware. If this middleware isuse
d before thestatic
middleware, the cache expiry settings fromexpress-cache-controller
will override any expiry settings provided instatic
. When including this middleware afterstatic
things seem to work correctly.It might be useful to at least include this in documentation so users would be aware of this interaction.
The text was updated successfully, but these errors were encountered: