I take latest SVN revision number from local .svn dir entries automatically upon application start, put it in settings, and use that, for instance as:

example.com/static/js/foobar.js?rev=${settings["svn_revision"]}

I use global revision number, but it is possible to monitor the rev of only specific files. I am sure the same can be used with cvs, git, mercurial etc... This works automatically since I checkout from svn directly into production for practical reasons. Otherwise I'd have to put some kind of revision or version number manually in config, but the principle is overall the same.

.oO V Oo.


On 09/05/2011 11:35 AM, Stéphane Klein wrote:
Hi,

in Pylons 1.0 or Pyramid, what is your better javascript cache invalidation solution ?

Use some url like example.com/0.18.1dev2/js/foobar.js
that is append version number in url path ?

Do you use others solutions ?

Thanks for your comments.
Stephane


--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to