Global Cache Bust

162 views
Skip to first unread message

John Walker

unread,
Jul 17, 2013, 12:21:35 AM7/17/13
to ang...@googlegroups.com
Hello,

I would like to add a cache buster to ALL partials htmls and javascript/css file imports. Is there a way to append something like .html?cach-bust=versionNumber to /app.js?cach-bust=versionNumber to all calls. 
What i dont want to do is copy and paste that onto every partial template call or file import. Is there a way to do this globally in Angular? Or is there a better way to do this? My issue is i test locally, and everything works great. Then i upload the application to google app engine, and have to wait 10 minutes to test new code. Even if i clear chromes cache.

Thanks for any help!

mlegenhausen

unread,
Jul 17, 2013, 3:44:50 AM7/17/13
to ang...@googlegroups.com
You can use grunt and the https://github.com/yeoman/grunt-usemin plugin. Which revs all your files and replaces all file names inside you html files with the revd one.

John Walker

unread,
Jul 17, 2013, 3:44:03 PM7/17/13
to ang...@googlegroups.com
Awesome, i will check it out. Thank you!


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/xec60KW-pqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages