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
d9d96fc8
Commit
d9d96fc8
authored
Jan 27, 2022
by
Roque
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs_upgrader: change caching-policy-check to use "must-revalidate"
parent
6f61db52
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 @
d9d96fc8
...
...
@@ -4,10 +4,10 @@ error_list = []
person
=
web_section
.
getSourceValue
(
portal_type
=
'Person'
)
if
(
web_section
.
getParentId
()
==
'application-list'
)
\
and
(
web_section
.
getAggregate
()
==
'web_page_module/gadget_ojs_appstore_redirect_page_html'
)
\
and
(
web_section
.
getCachingPolicy
()
==
'
must-revali
date'
):
error_list
.
append
(
'"
Must-revali
date" caching policy is deprecated'
)
and
(
web_section
.
getCachingPolicy
()
==
'
one-hour-max-modification-
date'
):
error_list
.
append
(
'"
One-hour-max-modification-
date" caching policy is deprecated'
)
if
fixit
:
web_section
.
edit
(
caching_policy
=
'
one-hour-max-modification-
date'
)
web_section
.
edit
(
caching_policy
=
'
must-revali
date'
)
return
error_list
Roque
@rporchetto
mentioned in commit
a8444666
·
Jan 28, 2022
mentioned in commit
a8444666
mentioned in commit a84446660a0d0bdec4f42aec73858bf06927023e
Toggle commit 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