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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
443acccd
Commit
443acccd
authored
Jun 27, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable 'public' and '304s' for anonymous access in caching_policy_manager.
parent
414ad054
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
30 deletions
+93
-30
bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
+91
-28
bt5/erp5_web/bt/revision
bt5/erp5_web/bt/revision
+1
-1
product/ERP5/tests/testERP5WebWithDms.py
product/ERP5/tests/testERP5WebWithDms.py
+1
-1
No files found.
bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
View file @
443acccd
...
...
@@ -27,10 +27,7 @@
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<tuple>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
...
...
@@ -103,12 +100,20 @@
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_enable_304s
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
_etag_func
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAY=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_last_modified
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
_max_age_secs
</string>
</key>
<value>
<int>
3600
</int>
</value>
...
...
@@ -131,16 +136,50 @@
<key>
<string>
_no_store
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_no_transform
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_policy_id
</string>
</key>
<value>
<string>
unauthenticated
</string>
</value>
</item>
<item>
<key>
<string>
_post_check
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
_pre_check
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
_predicate
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAg=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_private
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_proxy_revalidate
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_public
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
_s_max_age_secs
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
_vary
</string>
</key>
<value>
<string>
Accept-Language, Cookie
</string>
</value>
...
...
@@ -158,12 +197,20 @@
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_enable_304s
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
_etag_func
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAk=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_last_modified
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
_max_age_secs
</string>
</key>
<value>
<int>
300
</int>
</value>
...
...
@@ -186,16 +233,50 @@
<key>
<string>
_no_store
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_no_transform
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_policy_id
</string>
</key>
<value>
<string>
unauthenticated web pages
</string>
</value>
</item>
<item>
<key>
<string>
_post_check
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
_pre_check
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
_predicate
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAs=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_private
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_proxy_revalidate
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
_public
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
_s_max_age_secs
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
_vary
</string>
</key>
<value>
<string>
Accept-Language, Cookie
</string>
</value>
...
...
@@ -261,10 +342,7 @@
</record>
<record
id=
"6"
aka=
"AAAAAAAAAAY="
>
<pickle>
<tuple>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
...
...
@@ -277,10 +355,7 @@
</record>
<record
id=
"7"
aka=
"AAAAAAAAAAc="
>
<pickle>
<tuple>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
...
...
@@ -293,10 +368,7 @@
</record>
<record
id=
"8"
aka=
"AAAAAAAAAAg="
>
<pickle>
<tuple>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
...
...
@@ -309,10 +381,7 @@
</record>
<record
id=
"9"
aka=
"AAAAAAAAAAk="
>
<pickle>
<tuple>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
...
...
@@ -325,10 +394,7 @@
</record>
<record
id=
"10"
aka=
"AAAAAAAAAAo="
>
<pickle>
<tuple>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
...
...
@@ -341,10 +407,7 @@
</record>
<record
id=
"11"
aka=
"AAAAAAAAAAs="
>
<pickle>
<tuple>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
...
...
bt5/erp5_web/bt/revision
View file @
443acccd
1103
\ No newline at end of file
1104
\ No newline at end of file
product/ERP5/tests/testERP5WebWithDms.py
View file @
443acccd
...
...
@@ -474,7 +474,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
if
policy
[
0
]
==
'unauthenticated'
][
0
]
self
.
assertEquals
(
response
.
getHeader
(
'Content-Type'
),
'image/png'
)
self
.
assertEquals
(
response
.
getHeader
(
'Cache-Control'
),
'max-age=%s'
%
policy
[
1
].
getMaxAgeSecs
())
'max-age=%s
, public
'
%
policy
[
1
].
getMaxAgeSecs
())
def
test_07_TestDocumentViewBehaviour
(
self
):
"""All Documents shared the same downloading behaviour
...
...
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