issues
search
repackd
/
modules
The packages we use and abuse.
https://www.npmjs.com/org/repackd
MIT License
0
stars
0
forks
source link
uwu, pre-compress files
#19
Closed
joshxyzhimself
closed
2 years ago
joshxyzhimself
commented
3 years ago
overview
specific directories can be pre-compressed in gzip and brotli formats
this can be done asynchronously using promises
this can be done in parallel according to amount of available cores
cache-control can be used for staleness check, prevent
fs.stat
on each request
maybe as a separate timer / job scheduler
side-tangent: we dont have a job scheduler module yet
but i think we dont need a job scheduler for this, it's internal stuff anyways, no need to complicate
tasks (and task parameters) may be persisted on some cache (file / redis)
https://github.com/OptimalBits/bull
coverage
[ ] add option to pre-compress specific directories
[ ] add option to cache them in memory
[ ] add option for cache-control, how long to keep in memory without checking for updates using
fs.stat
joshxyzhimself
commented
2 years ago
Discarded in v3.
overview
fs.stat
on each requestcoverage
fs.stat