from django.views.decorators.cache import cache_control
from someproj.someapp.views import foo_view

# ...

open_cache = cache_control(private=True, public=True)

urlpatterns = patterns('',
    (r'^foo/$', open_cache(foo_view)),
    # ...
)