reduce cache
This commit is contained in:
parent
25eed7ef78
commit
335592f620
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class MediaAccess(LoginRequiredMixin, View):
|
|||
# Content-type will be detected by nginx
|
||||
del response["Content-Type"]
|
||||
response["X-Accel-Redirect"] = "/protected/media/" + path
|
||||
response['Cache-Control'] = 'max-age=%d' % 60*60*24*31
|
||||
response["Cache-Control"] = 'max-age=%d' % 60*60*24
|
||||
return response
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue