#5047: max-age set by cache_page is overwritten by cache_middleware -----------------------+---------------------------------------------------- Reporter: permon | Owner: jacob Status: new | Component: Cache system Version: SVN | Keywords: cache_control, cache, middleware Stage: Unreviewed | Has_patch: 1 -----------------------+---------------------------------------------------- When setting 'max-age' by ''@cache_page'' (more generally by ''patch_response_headers'') is later overwritten by cache_middleware. In the documentation (http://www.djangoproject.com/documentation/cache/# controlling-cache-using-other-headers) is said that it should work. The problem is in order of calling function. Decorator is called ''before'' middleware's ''process_response''. Simple patch against r5783 is attached, but it probably needs some design decision and folllowing rewrite.
-- Ticket URL: <http://code.djangoproject.com/ticket/5047> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" 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-updates?hl=en -~----------~----~----~----~------~----~------~--~---
