Permalink
Browse files

Add Cache-control header to snippets listing page.

fix bug 744581
  • Loading branch information...
1 parent 87d8fc6 commit aa2e03b7b87a4ce2ffc9eea3af57a29fb63745d8 @Osmose Osmose committed Jun 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 apps/homesnippets/views.py
@@ -117,6 +117,7 @@ def admin_bulk_date_change(request, **kwargs):
context_instance=RequestContext(request))
+@cache_control(public=True, max_age=3600)
def show_all_snippets(request):
"""
Show a list of all public snippets and their relevant client match rules.

0 comments on commit aa2e03b

Please sign in to comment.