jezdez/django_compressor — Issue #175: different key produced during offline compression and response cycle
Author: dgerzo
Created: 2011-12-04 21:15:53+00:00
State: open

I am compressing a linked javascript file together with some inline javascript in a file mode. The offline compression works fine and the compressed file is generated and saved into the cache dir, which I have verified by grepping some unique strings for that code. The problem is that the key in manifest.json for the given file differs from what's actually being computed during the request/response cycle and it ends up with an exception:

```Exception Type:	TemplateSyntaxError
Exception Value:

Caught OfflineGenerationError while rendering: You have offline compression enabled but key "d75c44fcbc46317f5a0e7df35ee7cda9" is missing from offline manifest. You may need to run "python manage.py compress".

Exception Location:	.../lib/python2.7/site-packages/compressor/templatetags/compress.py in render_offline, line 58```

while manifest holds this value:
``` "fcb09caaf2c0c24b3ab55f86bf2bb023": "",```

The key in the exception is always the same. I don't have any more ideas where to look to debug this issue. Any help will be appreciated.