mozilla / connect-cachify

Express connect middleware to provide easy frontend caching for Node.js
Mozilla Public License 2.0
131 stars 21 forks source link

cache poisioning dangers #31

Open lloyd opened 11 years ago

lloyd commented 11 years ago

because we never check that the on disk file matches what we serve, it's possible to poison caches. it would be better to hit the disk (and let OS caching come into play) than do what we do right now. apps using cachify can apply a caching proxy or serve as origin servers for CDN to achieve performance.