This compresses and caches the compiled oc-client, to serve as fast possible. I'm only compressing oc-client and caching it, since the other routes don't make as much sense to do, an it gives a boost in performance in comparison of just using app.use(compress()) on the express instance.
This compresses and caches the compiled oc-client, to serve as fast possible. I'm only compressing oc-client and caching it, since the other routes don't make as much sense to do, an it gives a boost in performance in comparison of just using
app.use(compress())
on the express instance.Using compress library
Optimized Compression