Sent from my iPhone, please excuse any typos

On 9 Jun 2011, at 14:21, DrBloodmoney <[email protected]> wrote:

> On Thu, Jun 9, 2011 at 9:16 AM, Malcolm Box <[email protected]> wrote:
>> On 9 June 2011 08:09, Thomas Guettler <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to