Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline cache bursting generates multiple js files in template #636

Open
ableade opened this issue Jul 5, 2017 · 0 comments
Open

Pipeline cache bursting generates multiple js files in template #636

ableade opened this issue Jul 5, 2017 · 0 comments

Comments

@ableade
Copy link

ableade commented Jul 5, 2017

Currently using pipeline in a production environment and having the following issues. After collectstatic is run with every new deployment and with PIPELINE_ENABLED set to true, using pipeline to output js files in the templates generates two different source files; one file with an appended hash and the original file without the hash.

<script type="text/javascript" src="/static/board1/js/a.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/board1/js/widget/a.b74627162e09.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/board1/js/widget/b.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/board1/js/widget/b.c74627162e09.js" charset="utf-8"></script>

Both files exist in the static root folder but shouldn't cached storage produce the url for the latest version only. I have noticed that the duplicated files are ones not specified explicitly in the javascript section of the pipeline dict but are collected using directory wildcards e.g 'js/vendor/*.js'

Is there an explanation for this behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant