Hi,

requests with a query string (http://example.com?foo=bar) are not cached in 
Django:

http://code.djangoproject.com/svn/django/trunk/django/middleware/cache.py
{{{
        if not request.method in ('GET', 'HEAD') or request.GET:
            request._cache_update_cache = False
            return None # Don't bother checking the cache.
}}}

If the query string would be used in _generate_cache_key() (utils/cache.py),
requests with an not empty request.GET could be cached.

I see no reason, not to cache requests with a query string.

Can someone explain this?

  Thomas

-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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