Commit 94053f4c authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: fixup modification date retrieval

See nexedi/erp5@2e3f7a8a
parent 7bea4d10
...@@ -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 ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment