Commit 3b6e4e5f authored by Romain Courteaud's avatar Romain Courteaud

[erp5_officejs_appstore_base] Cache the manifest like the HTML page

parent 14aea168
......@@ -10,7 +10,7 @@ if REQUEST.getHeader('If-Modified-Since', '') == web_section.getModificationDate
return ""
response.setHeader('Content-Type', 'text/cache-manifest')
response.setHeader('Cache-Control', 'max-age=0, public, must-revalidate')
response.setHeader('Cache-Control', 'max-age=600, stale-while-revalidate=360000, stale-if-error=31536000, public')
return """CACHE MANIFEST
# %s + hash""" % context.getLayoutProperty("configuration_latest_version", default="development")
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