CSSMin: version URLs based on content, not mtime
authorOri Livneh <ori@wikimedia.org>
Mon, 17 Aug 2015 02:15:40 +0000 (19:15 -0700)
committerOri Livneh <ori@wikimedia.org>
Mon, 17 Aug 2015 22:22:07 +0000 (15:22 -0700)
commit3063e8524865e469c1dd89f06a544c49485a3c57
tree77352dec005c67edd738676824e3ec7fdab35127
parent5c09ef0d6a59b645c34f8bf4735df1bbbb8cf2ce
CSSMin: version URLs based on content, not mtime

The content of these files is more stable than their mtimes, which change
every time we roll out a new branch. Because MD5 avalanches well[0], using
the first five hexadecimal digits is sufficient to ensure that the chance
of two successive versions colliding is improbably small (roughly one in a
million).

[0]: https://en.wikipedia.org/wiki/Avalanche_effect

Change-Id: I1bdf94c58786d2545311b238476b48217a5a60af
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php