Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching directives conflict with (override) express.static #13

Open
mikecbrant opened this issue Jul 30, 2018 · 0 comments
Open

Caching directives conflict with (override) express.static #13

mikecbrant opened this issue Jul 30, 2018 · 0 comments

Comments

@mikecbrant
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant