On 27 May 2011 08:12, Олег Корсак <kamikaze.is.waiting....@gmail.com> wrote:

> Hello. Is there a way to cache ajax json responce after post request
> like after get?
> Thanks.
>
> Where do you want to cache it?
Why do you want to cache a POST request? POST should be used to alter the
state of the application - so it's probable that whatever was cached before
is no longer valid.

If you really, really want to do this using Django, it has nothing to do
with AJAX or JSON. Just alter your view function to cache the POST response
and replay it to the next POST. You get to choose what comes back from your
views.

Malcolm



-- 
Malcolm Box
malcolm....@gmail.com

-- 
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.

Reply via email to