diff --git a/news/82.bugfix b/news/82.bugfix new file mode 100644 index 00000000..cb3db029 --- /dev/null +++ b/news/82.bugfix @@ -0,0 +1,2 @@ +Add upgrade step to define the new base terse cache setting. +[maurits] diff --git a/plone/app/caching/configure.zcml b/plone/app/caching/configure.zcml index 561a7af3..9f9b1fc6 100644 --- a/plone/app/caching/configure.zcml +++ b/plone/app/caching/configure.zcml @@ -1,7 +1,6 @@ @@ -14,21 +13,7 @@ - - - - + - diff --git a/plone/app/caching/profiles.zcml b/plone/app/caching/profiles.zcml new file mode 100644 index 00000000..960191c9 --- /dev/null +++ b/plone/app/caching/profiles.zcml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + diff --git a/plone/app/caching/profiles/default/metadata.xml b/plone/app/caching/profiles/default/metadata.xml index dc955974..5f38361e 100644 --- a/plone/app/caching/profiles/default/metadata.xml +++ b/plone/app/caching/profiles/default/metadata.xml @@ -1,5 +1,5 @@ - 1 + 2 profile-plone.app.registry:default diff --git a/plone/app/caching/profiles/default/registry.xml b/plone/app/caching/profiles/default/registry.xml index 84883731..6dbbf1c8 100644 --- a/plone/app/caching/profiles/default/registry.xml +++ b/plone/app/caching/profiles/default/registry.xml @@ -12,10 +12,6 @@ - @@ -53,279 +49,4 @@ - - - - - ETags - A list of ETag component names to include - - False - - - - - - - Last-modified validation - Turn on Last-Modified headers - False - - False - - - - RAM cache - Turn on caching in Zope memory - False - - False - - - - Vary - Name(s) of HTTP headers that must match for the caching proxy to return a cached response - False - - - - - - Only cache for anonymous users - Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. - False - - False - - - - - - - Maximum age - Time (in seconds) to cache the response in the browser - False - - 10 - - - - Shared maximum age - Time (in seconds) to cache the response in the caching proxy - False - - 60 - - - - ETags - A list of ETag component names to include - - False - - - - - - - Last-modified validation - Turn on Last-Modified headers - False - - False - - - - RAM cache - Turn on caching in Zope memory - False - - False - - - - Vary - Name(s) of HTTP headers that must match for the caching proxy to return a cached response - False - - - - - - Only cache for anonymous users - Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. - False - - False - - - - - - - Shared maximum age - Time (in seconds) to cache the response in the caching proxy - False - - 86400 - - - - ETags - A list of ETag component names to include - - False - - - - - - - Last-modified validation - Turn on Last-Modified headers - False - - False - - - - RAM cache - Turn on caching in Zope memory - False - - False - - - - Vary - Name(s) of HTTP headers that must match for the caching proxy to return a cached response - False - - - - - - Only cache for anonymous users - Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. - False - - False - - - - - - Maximum age - Time (in seconds) to cache the response in the browser or caching proxy - False - - 86400 - - - - Shared maximum age - Time (in seconds) to cache the response in the caching proxy. Leave blank to use value from "Maximum age" field. - False - - - - - - ETags - A list of ETag component names to include - - False - - - - - - - Last-modified validation - Turn on Last-Modified headers - False - - False - - - - RAM cache - Turn on caching in Zope memory - False - - False - - - - Vary - Name(s) of HTTP headers that must match for the caching proxy to return a cached response - False - - - - - - Only cache for anonymous users - Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. - False - - False - - - - - diff --git a/plone/app/caching/profiles/default/registry/generic.xml b/plone/app/caching/profiles/default/registry/generic.xml new file mode 100644 index 00000000..8c5bfd28 --- /dev/null +++ b/plone/app/caching/profiles/default/registry/generic.xml @@ -0,0 +1,57 @@ + + + + diff --git a/plone/app/caching/profiles/default/registry/moderate.xml b/plone/app/caching/profiles/default/registry/moderate.xml new file mode 100644 index 00000000..ed68cb07 --- /dev/null +++ b/plone/app/caching/profiles/default/registry/moderate.xml @@ -0,0 +1,53 @@ + + + + + Shared maximum age + Time (in seconds) to cache the response in the caching proxy + False + + 86400 + + + + ETags + A list of ETag component names to include + + False + + + + + + + Last-modified validation + Turn on Last-Modified headers + False + + False + + + + RAM cache + Turn on caching in Zope memory + False + + False + + + + Vary + Name(s) of HTTP headers that must match for the caching proxy to return a cached response + False + + + + + + Only cache for anonymous users + Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. + False + + False + + diff --git a/plone/app/caching/profiles/default/registry/strong.xml b/plone/app/caching/profiles/default/registry/strong.xml new file mode 100644 index 00000000..c7e4df96 --- /dev/null +++ b/plone/app/caching/profiles/default/registry/strong.xml @@ -0,0 +1,61 @@ + + + + + Maximum age + Time (in seconds) to cache the response in the browser or caching proxy + False + + 86400 + + + + Shared maximum age + Time (in seconds) to cache the response in the caching proxy. Leave blank to use value from "Maximum age" field. + False + + + + + + ETags + A list of ETag component names to include + + False + + + + + + + Last-modified validation + Turn on Last-Modified headers + False + + False + + + + RAM cache + Turn on caching in Zope memory + False + + False + + + + Vary + Name(s) of HTTP headers that must match for the caching proxy to return a cached response + False + + + + + + Only cache for anonymous users + Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. + False + + False + + diff --git a/plone/app/caching/profiles/default/registry/terse.xml b/plone/app/caching/profiles/default/registry/terse.xml new file mode 100644 index 00000000..adae5bbd --- /dev/null +++ b/plone/app/caching/profiles/default/registry/terse.xml @@ -0,0 +1,61 @@ + + + + + Maximum age + Time (in seconds) to cache the response in the browser + False + + 10 + + + + Shared maximum age + Time (in seconds) to cache the response in the caching proxy + False + + 60 + + + + ETags + A list of ETag component names to include + + False + + + + + + + Last-modified validation + Turn on Last-Modified headers + False + + False + + + + RAM cache + Turn on caching in Zope memory + False + + False + + + + Vary + Name(s) of HTTP headers that must match for the caching proxy to return a cached response + False + + + + + + Only cache for anonymous users + Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. + False + + False + + diff --git a/plone/app/caching/profiles/default/registry/weak.xml b/plone/app/caching/profiles/default/registry/weak.xml new file mode 100644 index 00000000..674f819c --- /dev/null +++ b/plone/app/caching/profiles/default/registry/weak.xml @@ -0,0 +1,45 @@ + + + + + ETags + A list of ETag component names to include + + False + + + + + + + Last-modified validation + Turn on Last-Modified headers + False + + False + + + + RAM cache + Turn on caching in Zope memory + False + + False + + + + Vary + Name(s) of HTTP headers that must match for the caching proxy to return a cached response + False + + + + + + Only cache for anonymous users + Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. + False + + False + + diff --git a/plone/app/caching/profiles/v2/registry/terse.xml b/plone/app/caching/profiles/v2/registry/terse.xml new file mode 100644 index 00000000..adae5bbd --- /dev/null +++ b/plone/app/caching/profiles/v2/registry/terse.xml @@ -0,0 +1,61 @@ + + + + + Maximum age + Time (in seconds) to cache the response in the browser + False + + 10 + + + + Shared maximum age + Time (in seconds) to cache the response in the caching proxy + False + + 60 + + + + ETags + A list of ETag component names to include + + False + + + + + + + Last-modified validation + Turn on Last-Modified headers + False + + False + + + + RAM cache + Turn on caching in Zope memory + False + + False + + + + Vary + Name(s) of HTTP headers that must match for the caching proxy to return a cached response + False + + + + + + Only cache for anonymous users + Ensure logging users always get a fresh page. Note that if you are caching pages in a proxy cache, you'll still need to use a Vary response header to keep anonymous and authenticated content separate. + False + + False + +