P
P
Pavel Shvedov2014-12-12 15:21:01
JavaScript
Pavel Shvedov, 2014-12-12 15:21:01

Why can't it find the JS file compressed by Django-compressor after recompression?

Good day. I'm using Django-Compressor to offline compress all JS and CSS into one minified file.
I set everything up, added tags to the template, did:
python manage compress --extension=tpl
All the {% compress %} {% endcompress %} tags specified in the templates are compressed into the corresponding files in the CACHE folder, manifest.json is generated. On the page, everything connected where necessary, in general - everything is OK.
But as soon as I edited the code in my source JS files and rebuilt the minified files by calling the compress command again, the compressed JS got a new name, the information was updated in the manifest, but in the pages, it is connected with the old name, and, accordingly, is not located. I thought the browser cache - I cleared the cache, went in incognito mode, anyway, it is embedded in the page under the old name. How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2014-12-12
@mmmaaak

The problem is solved, it was necessary to restart the django-server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question