Sent from my iPhone, please excuse any typos
On 9 Jun 2011, at 14:21, DrBloodmoney <drbloodmo...@gmail.com> wrote: > On Thu, Jun 9, 2011 at 9:16 AM, Malcolm Box <malcolm....@gmail.com> wrote: >> On 9 June 2011 08:09, Thomas Guettler <h...@tbz-pariv.de> wrote: >>> >>> My static files (JS/CSS) are cached in the browser. But if there is a bug >>> in a file, an update won't help people which have already cached the old >>> file. >>> >>> You would need a new URL for every change in the JS/CSS files. >>> >> >> Version all static assets, bump the version when you change them. > > I keep the file name the same and append a querystring eg. > /static/js/mycustom.js?v=1001 then just increment the querystring on > versioning. That works but may bust intermediate caches. Some won't cache anything with a query string. Malcolm -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.