Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
c1b8fa1a
Commit
c1b8fa1a
authored
Dec 22, 2017
by
Boris Kocherov
Committed by
Romain Courteaud
Jan 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use Cache-Control respose header setted by "Caching Policy Manager"
parent
1384411b
Changes
3
Show 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'
,
...
...
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'
)
...
...
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'
,
...
...
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