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
How to disable cache in views? #542
Comments
why do you want to? they only cache in production, and the contents do not cache, just the compiled template function |
In templates of authorization and registration. At wrong fillings of fields of the form, it is necessary to deduce that they have filled. Also it should be dependent on parameter options func render. And at post requests it is necessary to not caching (as, for example, it is made in nginx) |
like i said, the contents are not cached |
cached in devlopment - run node app.js |
At get request (after post) the cache undertakes with last post request |
it could be your browser filling the fields, I assure you express does not cache contents of anything |
ok. I made a mistake trying to make the default value (view options) for each template. That got the bug.
./exports/routeAuth:
Run. Error - lang is not defined. |
ah I see, I'm not sure if we are currently merging locals from the view options if not we should but im willing to bet we are not |
added this issue #543 |
No description provided.
The text was updated successfully, but these errors were encountered: