Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Cache-control header to snippets listing page.

fix bug 744581
  • Loading branch information...
commit aa2e03b7b87a4ce2ffc9eea3af57a29fb63745d8 1 parent 87d8fc6
@Osmose Osmose authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  apps/homesnippets/views.py
View
1  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.
Please sign in to comment.
Something went wrong with that request. Please try again.