|
|
|
|
|
by simonw
5419 days ago
|
|
django-compressor uses the file modification time to assign a different filename to the file - unfortunately, this doesn't work so well if you are deploying from multiple machines. I much prefer using a hash of the file contents, since that is guaranteed to change if and only if the file itself has changed. In fact, I'll file a bug suggesting this on django_compressor right now. |
|
In our case we have a utility machine that compiles media and deployes it but that machine doesn't even run a webserver at all...
https://github.com/jezdez/django_compressor/blob/develop/com...