3 ms·
You guys should use MD5 digests of files instead of mtime for file change comparison. mtime works fine until you want to add other steps that are dependent on
by malandrew 14y ago
You guys should use MD5 digests of files instead of mtime for file change comparison.
mtime works fine until you want to add other steps that are dependent on the mtime of ephemeral files occuring previously in your process. Steps such as minification, uglification and comparison for uploading to a CDN all become a bit more complex if mtime is used since every compile step has the tendency to modify mtime so recompilations cascade through the process causing at best unnecessary processing and at worst weird edge cases if the order of middleware isn't taken into account (the middleware issues can be avoided with precompilation before production.