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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
404ebc0e
Commit
404ebc0e
authored
Feb 07, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: fixup modification date retrieval
See
nexedi/erp5@2e3f7a8a
parent
be88e24e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py
...em/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py
+2
-1
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py
View file @
404ebc0e
...
@@ -12,7 +12,8 @@ response.setHeader("Access-Control-Allow-Origin", "*")
...
@@ -12,7 +12,8 @@ response.setHeader("Access-Control-Allow-Origin", "*")
web_page
=
context
web_page
=
context
web_section
=
context
.
getWebSectionValue
()
web_section
=
context
.
getWebSectionValue
()
if
REQUEST
.
getHeader
(
'If-Modified-Since'
,
''
)
==
web_page
.
getModificationDate
().
rfc822
():
# Must-Revalidate caching policy uses Base_getWebSiteDrivenModificationDate
if
REQUEST
.
getHeader
(
'If-Modified-Since'
,
''
)
==
web_page
.
Base_getWebSiteDrivenModificationDate
().
rfc822
():
response
.
setStatus
(
304
)
response
.
setStatus
(
304
)
return
""
return
""
...
...
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