Closed FreakDev closed 6 years ago
Hello,
would it be possible to have a property in config object to pass options to express static middleware (for caching purpose)
this (line 256 from server/core/server.js) this.router.use(express.static(this.config.publicDirectory));
this.router.use(express.static(this.config.publicDirectory));
would become something like this this.router.use(express.static(this.config.publicDirectory, this.config.cachingOptions));
this.router.use(express.static(this.config.publicDirectory, this.config.cachingOptions));
thanks in advance
Hello,
would it be possible to have a property in config object to pass options to express static middleware (for caching purpose)
this (line 256 from server/core/server.js)
this.router.use(express.static(this.config.publicDirectory));
would become something like this
this.router.use(express.static(this.config.publicDirectory, this.config.cachingOptions));
thanks in advance