Static cache user agent
=======================
#009126: Static cache uses old cache to create new cache on publishing
http://issues.ez.no/IssueView.php?Id=9126&ProjectId=3
The fix for issue #9126 is to make the cache generator identify itself as such
in the request it uses to update the static cache. The user agent string in
such requests is now "Exponential static cache generator".
In order to take advantage of this, you should create a conditional in your
web server, based on the user agent string. In Apache, use something like
this, followed by rewrite rules for the static cache:
# If the user agent is not "Exponential static cache generator"
RewriteCond %{HTTP_USER_AGENT} !^Exponential\ static\ cache\ generator$
# then rewrite to static cache
A site that matches the former user agent string ("eZ Publish static cache
generator") in its web server rules must change that condition to the string
above, or let both through:
RewriteCond %{HTTP_USER_AGENT} !^(Exponential|eZ\ Publish)\ static\ cache\ generator$
NOTE:
The traditional solution is still valid, i.e. to have different host names for
the dynamic and the static cached Exponential. If you use this solution, you
don't have change anything.
Static cache user agent
#009126: Static cache uses old cache to create new cache on publishing http://issues.ez.no/IssueView.php?Id=9126&ProjectId=3
Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/features/4.0/static_cache_user_agent.txt
Documentation license
This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.
Copyright (C) 1999 - 2014 eZ Systems AS and contributors