Nest js disable .hbs files cache

Viewed 230

I am using NestJS(based on Express) with Handlebars template engine. When I am changing .hbs files and refreshing a page, the NestJS still renders the old versions of templates, until recompilation/relaunch.

I don't know exactly, but I think, NestJS somehow caches .hbs templates. I tried to add .hbs files as assets in nest-cli.json file, but that didn't solve the problem.

So, how to disable the cache?

Thanks.

0 Answers
Related