Re: stop caching json response

2011-02-20 Thread Eric Hutchinson
check out: http://docs.djangoproject.com/en/1.2/topics/cache/#controlling-cache-using-other-headers On Feb 20, 7:06 am, Олег Корсак wrote: > Hello. I have memcached mw enabled. And I can see that response is > cached in memcached. I want to stop caching that. How is it possible to > do? Thanks >

Re: stop caching json response

2011-02-20 Thread Shawn Milochik
A quick and dirty way is to append a timestamp to the URL so it's always unique. That way it won't be cached. Add "new Date().getTime()" to the end of the URL your AJAX call requests. Just have your url pattern accept and ignore the extra stuff. Shawn -- You received this message because you ar

stop caching json response

2011-02-20 Thread Олег Корсак
Hello. I have memcached mw enabled. And I can see that response is cached in memcached. I want to stop caching that. How is it possible to do? Thanks def do_something(request): return HttpResponse('yoyoyo23', content_type = 'application/javascript; charset=utf8') signature.asc Descripti