I have app.html
page with many coffee scripts (58 files).
I use django-compressor to compile them:
{% compress js %}
<script type="text/coffeescript" src="/static/scripts/commons/commons.coffee"></script>
<script type="text/coffeescript" src="/static/scripts/app/model/Storage.coffee"></script>
<script type="text/coffeescript" src="/static/scripts/app/model/Unit.coffee"></script>
....
{% endcompress %}
Everything compiles and works, but it takes 15 seconds for page to response. I think it should be ok for the first request (coffees should be compiled), but it takes same 15 seconds on the 2nd, 3rd and all further requests.
The output is always the same:
<script type="text/javascript" src="/static/CACHE/js/commons.33f0b9628e28.js"></script>
<script type="text/javascript" src="/static/CACHE/js/Storage.924e88456824.js"></script>
<script type="text/javascript" src="/static/CACHE/js/Unit.0fdebfecb96b.js"></script>
....
I don't change files, I just do page refresh.
Seems like django-compressor recompiles all files on every request (but names of compiled js files don't change, which is weird).
Any way I can speedup django-compressor?
P.S.
- I run django locally by
manage.py runserver
. DEBUG = True
(my DEBUG option is set to True in settings.py)