Commit 8dcb5112 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_web_renderjs_ui: File with HTML content type are returned as is

Formerly the "base" tag was introduced in the header.
parent 9563c221
......@@ -6,6 +6,9 @@ if response is None:
file = context
file_content = file.getData()
# The vanilla HTML is wanted
response.setBase(None)
if REQUEST.getHeader('If-Modified-Since', '') == file.getModificationDate().rfc822():
response.setStatus(304)
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