asilvas / node-image-steam

A simple, fast, and highly customizable on-the-fly image manipulation web server built atop Node.js
MIT License
170 stars 26 forks source link

Option to disable cache #53

Closed Loyz07 closed 7 years ago

Loyz07 commented 7 years ago

Hello,

At first, thanks for the job.

To continue with a little issue. With sharp we can disable caching with option cache: false but in image-steam we can't because options we pass are always merged with defaults one in an empty object that is different from 'false'.

Is there a way to disable it ?

Thanks.

asilvas commented 7 years ago

Good catch, thanks for the report.

Fix published in 0.53.3.

asilvas commented 7 years ago

Example:

{
  processor: {
    sharp: {
      cache: false
    }
  }
}
Loyz07 commented 7 years ago

Amazing reactivity !

Thanks.