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

Hash prepending not updating #4

Closed
brettmhammond opened this issue Aug 21, 2013 · 3 comments
Closed

Hash prepending not updating #4

brettmhammond opened this issue Aug 21, 2013 · 3 comments
Labels

Comments

@brettmhammond
Copy link

    cachebust: {
      options: {
        encoding: 'utf8',
        algorithm: 'md5',
        length: 8,
      },
      assets: {
        files: [{
          src: [
            'src/t3/views/layouts/application.ctp',
          ]
        }]
      }
    }

After the first intitial cachebust

<script src="/js/build/t3/application.min.js?5c2df7d1"></script>

The hash gets applied correctly on the first grunt cachebust but on any busts after the first it appears to be prepending a new hash on top of the other

<script src="/js/build/t3/application.min.js?5c2df7d1?b726fb86"></script>

I expect this to remove the first hash entirely and add the new new hash.

@benhoIIand
Copy link
Owner

I've just pushed a fix for this.

run npm update to get the latest version

@brettmhammond
Copy link
Author

So I see that you have it fixed but there seems to be a bit of an issue...

You have 2 npm pages for this plugin it seems

https://npmjs.org/package/grunt-cachebust
https://npmjs.org/package/grunt-cache-bust <--- this is showing it was updated 3 hours ago

The docs on both those page have either

npm install grunt-cache --save-dev
npm install grunt-bust-cache --save-dev

Neither of these two work but if I do

npm install grunt-cachebust --save-dev <--- This works but it is still not fixed on this npm repo

Is this the correct repo to use or should it be one of the others?

@benhoIIand
Copy link
Owner

Yeh there was a problem when the repo was first created the name changing and some merge issues with the documentation. I thought I had removed the old npm module from the registry but apparently not.

This is the correct repo to use. And the correct npm module is https://npmjs.org/package/grunt-cache-bust

I will double check and update the documentation now and get the old module removed

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

No branches or pull requests

2 participants