Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tristan Cavelier
erp5
Commits
c1b8fa1a
Commit
c1b8fa1a
authored
7 years ago
by
Boris Kocherov
Committed by
Romain Courteaud
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
use Cache-Control respose header setted by "Caching Policy Manager"
parent
1384411b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
3 deletions
+0
-3
bt5/erp5_multimedia/DocumentTemplateItem/portal_components/document.erp5.Sound.py
...mentTemplateItem/portal_components/document.erp5.Sound.py
+0
-1
product/ERP5/Document/BigFile.py
product/ERP5/Document/BigFile.py
+0
-1
product/ERP5/mixin/downloadable.py
product/ERP5/mixin/downloadable.py
+0
-1
No files found.
bt5/erp5_multimedia/DocumentTemplateItem/portal_components/document.erp5.Sound.py
View file @
c1b8fa1a
...
...
@@ -69,7 +69,6 @@ class Sound(File):
RESPONSE
.
setHeader
(
'Content-Length'
,
len
(
data
))
RESPONSE
.
setHeader
(
'Content-Type'
,
mime
)
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
RESPONSE
.
setHeader
(
'Pragma'
,
''
)
RESPONSE
.
setHeader
(
'Content-Disposition'
,
...
...
This diff is collapsed.
Click to expand it.
product/ERP5/Document/BigFile.py
View file @
c1b8fa1a
...
...
@@ -319,7 +319,6 @@ class BigFile(File):
if
not
inline
:
# need to return it as attachment
filename
=
self
.
getStandardFilename
(
format
=
format
)
RESPONSE
.
setHeader
(
'Cache-Control'
,
'Private'
)
# workaround for Internet Explorer's bug
RESPONSE
.
setHeader
(
'Accept-Ranges'
,
'bytes'
)
...
...
This diff is collapsed.
Click to expand it.
product/ERP5/mixin/downloadable.py
View file @
c1b8fa1a
...
...
@@ -122,7 +122,6 @@ class DownloadableMixin:
filename
=
self
.
getStandardFilename
(
format
=
output_format
)
else
:
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
RESPONSE
.
setHeader
(
'Pragma'
,
''
)
RESPONSE
.
setHeader
(
'Content-Disposition'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment