express-static-compress
High performance static assets cache for express that also supports compression and maxAge cache-control.
Example
const expressCache = ;const express = ; const app = ; app;
Options
The cache will decently choose compression based on file type (currently only deflate is supported). Default maxAge cache-control is 14 days. Options can be set as second argument:
; ;
Use value null
to disable cache-control / compression.