collective-soundworks / soundworks

Creative coding framework for distributed applications based on Web technologies.
http://soundworks.dev
BSD 3-Clause "New" or "Revised" License
114 stars 7 forks source link

options to configure caching headers for static files #13

Closed FreakDev closed 6 years ago

FreakDev commented 7 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));

would become something like this this.router.use(express.static(this.config.publicDirectory, this.config.cachingOptions));

thanks in advance