toastdriven/django-tastypie — pull request #318 by chrischamberlin (2011-12-22 06:51:10+00:00)
Title: Move patch_cache_control() call for AJAX from wrap_view() to create_response()

This allows sub-Resources to replace the default `Cache-Control: no-cache`
setting for AJAX requests by overriding `create_response()`. It can be helpful to enable browser caching on a per-Resource basis.

The `core.tests.resources.ModelResourceTestCase.test_browser_cache()` test case already covers this nicely.