Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
using the never_cache decorator should set `Expires` to now
  • Loading branch information
jonasrauber authored Jun 8, 2017
1 parent a0a29e8 commit c14dbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readthedocs/projects/views/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.views.decorators.cache import cache_control
from django.views.decorators.cache import never_cache
from django.views.generic import ListView, DetailView

from taggit.models import Tag
Expand Down Expand Up @@ -101,7 +101,7 @@ def get_context_data(self, **kwargs):
return context


@cache_control(no_cache=True)
@never_cache
def project_badge(request, project_slug):
"""Return a sweet badge for the project"""
version_slug = request.GET.get('version', LATEST)
Expand Down

0 comments on commit c14dbb5

Please sign in to comment.