Commit 14aea168 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.

[erp5_web] Remove accept language
parent ce4e546b
......@@ -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