Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs-appstore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
officejs-appstore
Commits
a8444666
Commit
a8444666
authored
Jan 28, 2022
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "officejs_upgrader: change caching-policy-check to use "must-revalidate""
This reverts commit
d9d96fc8
.
parent
5d4568e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/officejs_upgrader/SkinTemplateItem/portal_skins/officejs_upgrader/WebSection_checkAppstoreApplicationCachingPolicyConsistency.py
...ction_checkAppstoreApplicationCachingPolicyConsistency.py
+3
-3
No files found.
bt5/officejs_upgrader/SkinTemplateItem/portal_skins/officejs_upgrader/WebSection_checkAppstoreApplicationCachingPolicyConsistency.py
View file @
a8444666
...
@@ -4,10 +4,10 @@ error_list = []
...
@@ -4,10 +4,10 @@ error_list = []
person
=
web_section
.
getSourceValue
(
portal_type
=
'Person'
)
person
=
web_section
.
getSourceValue
(
portal_type
=
'Person'
)
if
(
web_section
.
getParentId
()
==
'application-list'
)
\
if
(
web_section
.
getParentId
()
==
'application-list'
)
\
and
(
web_section
.
getAggregate
()
==
'web_page_module/gadget_ojs_appstore_redirect_page_html'
)
\
and
(
web_section
.
getAggregate
()
==
'web_page_module/gadget_ojs_appstore_redirect_page_html'
)
\
and
(
web_section
.
getCachingPolicy
()
==
'
one-hour-max-modification-
date'
):
and
(
web_section
.
getCachingPolicy
()
==
'
must-revali
date'
):
error_list
.
append
(
'"
One-hour-max-modification-
date" caching policy is deprecated'
)
error_list
.
append
(
'"
Must-revali
date" caching policy is deprecated'
)
if
fixit
:
if
fixit
:
web_section
.
edit
(
caching_policy
=
'
must-revali
date'
)
web_section
.
edit
(
caching_policy
=
'
one-hour-max-modification-
date'
)
return
error_list
return
error_list
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