Commit 396f87e3 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web] Use stale_if_error for one hour/day max caching policy

This will allow the CDN to return content if backend is down
parent 99846808
...@@ -675,7 +675,7 @@ ...@@ -675,7 +675,7 @@
</item> </item>
<item> <item>
<key> <string>_stale_if_error_secs</string> </key> <key> <string>_stale_if_error_secs</string> </key>
<value> <int>0</int> </value> <value> <int>31536000</int> </value>
</item> </item>
<item> <item>
<key> <string>_stale_while_revalidate_secs</string> </key> <key> <string>_stale_while_revalidate_secs</string> </key>
...@@ -780,7 +780,7 @@ ...@@ -780,7 +780,7 @@
</item> </item>
<item> <item>
<key> <string>_stale_if_error_secs</string> </key> <key> <string>_stale_if_error_secs</string> </key>
<value> <int>0</int> </value> <value> <int>31536000</int> </value>
</item> </item>
<item> <item>
<key> <string>_stale_while_revalidate_secs</string> </key> <key> <string>_stale_while_revalidate_secs</string> </key>
......
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