Use django-compressor. On Thu, Jun 9, 2011 at 9:21 PM, 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. > > -- > 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. > > -- 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.