Commit 92f008ee authored by Romain Courteaud's avatar Romain Courteaud

[erp5_officejs_appstore_base] Cache the manifest like the HTML page

parent f982215f
......@@ -11,7 +11,7 @@ if REQUEST.getHeader('If-Modified-Since', '') == modification_date:
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 / %s""" % (context.getLayoutProperty("configuration_latest_version", default="development"), modification_date)
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