Skip to content

Commit

Permalink
Add Cache-control header to snippets listing page.
Browse files Browse the repository at this point in the history
fix bug 744581
  • Loading branch information
Michael Kelly committed Jun 6, 2012
1 parent 87d8fc6 commit aa2e03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/homesnippets/views.py
Expand Up @@ -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.
Expand Down

0 comments on commit aa2e03b

Please sign in to comment.