Commit 5747f7be authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web] Unify one hour/day/year caching policies

Allow the CDN to cache the content.

Use stale_if_error to allow the CDN to return content if backend is down

Unify Vary Header.
parent cc665f40
......@@ -675,7 +675,7 @@
</item>
<item>
<key> <string>_stale_if_error_secs</string> </key>
<value> <int>0</int> </value>
<value> <int>31536000</int> </value>
</item>
<item>
<key> <string>_stale_while_revalidate_secs</string> </key>
......@@ -683,7 +683,7 @@
</item>
<item>
<key> <string>_vary</string> </key>
<value> <string>Cookie, Authorization</string> </value>
<value> <string>Cookie, Authorization, Accept-Encoding</string> </value>
</item>
</dictionary>
</state>
......@@ -770,7 +770,7 @@
</item>
<item>
<key> <string>_public</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>_s_max_age_secs</string> </key>
......@@ -780,7 +780,7 @@
</item>
<item>
<key> <string>_stale_if_error_secs</string> </key>
<value> <int>0</int> </value>
<value> <int>31536000</int> </value>
</item>
<item>
<key> <string>_stale_while_revalidate_secs</string> </key>
......@@ -893,7 +893,7 @@
</item>
<item>
<key> <string>_vary</string> </key>
<value> <string></string> </value>
<value> <string>Cookie, Authorization, Accept-Encoding</string> </value>
</item>
</dictionary>
</state>
......
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