Commit c1b8fa1a authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

use Cache-Control respose header setted by "Caching Policy Manager"

parent 1384411b
...@@ -69,7 +69,6 @@ class Sound(File): ...@@ -69,7 +69,6 @@ class Sound(File):
RESPONSE.setHeader('Content-Length', len(data)) RESPONSE.setHeader('Content-Length', len(data))
RESPONSE.setHeader('Content-Type', mime) RESPONSE.setHeader('Content-Type', mime)
filename = self.getStandardFilename(format=format) filename = self.getStandardFilename(format=format)
RESPONSE.setHeader('Cache-Control', 'Private') # workaround for Internet Explorer's bug
# workaround for IE's bug to download files over SSL # workaround for IE's bug to download files over SSL
RESPONSE.setHeader('Pragma', '') RESPONSE.setHeader('Pragma', '')
RESPONSE.setHeader('Content-Disposition', RESPONSE.setHeader('Content-Disposition',
......
...@@ -319,7 +319,6 @@ class BigFile(File): ...@@ -319,7 +319,6 @@ class BigFile(File):
if not inline: if not inline:
# need to return it as attachment # need to return it as attachment
filename = self.getStandardFilename(format=format) filename = self.getStandardFilename(format=format)
RESPONSE.setHeader('Cache-Control', 'Private') # workaround for Internet Explorer's bug
RESPONSE.setHeader('Accept-Ranges', 'bytes') RESPONSE.setHeader('Accept-Ranges', 'bytes')
......
...@@ -122,7 +122,6 @@ class DownloadableMixin: ...@@ -122,7 +122,6 @@ class DownloadableMixin:
filename = self.getStandardFilename(format=output_format) filename = self.getStandardFilename(format=output_format)
else: else:
filename = self.getStandardFilename(format=format) filename = self.getStandardFilename(format=format)
RESPONSE.setHeader('Cache-Control', 'Private') # workaround for Internet Explorer's bug
# workaround for IE's bug to download files over SSL # workaround for IE's bug to download files over SSL
RESPONSE.setHeader('Pragma', '') RESPONSE.setHeader('Pragma', '')
RESPONSE.setHeader('Content-Disposition', RESPONSE.setHeader('Content-Disposition',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment