breezewish / express-minify

Automatically minify and cache your javascript and css files.
https://npmjs.org/package/express-minify
MIT License
86 stars 18 forks source link

Cache directory grows to a large number of files #13

Closed tokudu closed 10 years ago

tokudu commented 10 years ago

After a few days of running in production, the cache directory grows to a huge number of files (in hundred thousands). Is that normal?

tokudu commented 10 years ago

After more debuging, it looks like all JSONP requests also get minified by default, but they all result in cache misses, so hence the huge number of files.

faeb187 commented 10 years ago

little beside the topic but: http://json-p.org/ read about problems and alternatives... ;)

breezewish commented 10 years ago

Try this: https://github.com/breeswish/express-minify#disable-minify-or-cache-for-a-specific-response

tokudu commented 10 years ago

Yeah, i already figured a way to do. Thanks!