ZF-4889: Zend_Cache_Page needs options to include SERVER[HTTP_HOST] in id calculation
Description
As it stands the Page front-end can (optionally) base the hash id on session content, cookies, etc. It also involves the request URI. The latter, however, does not contain the "host" component. If one wishes to use a ZF application behind a set of multiple virtual hosts there is a problem. If you generate absolute links on the page (necessary in case of a desired switch from http to https or vv. the link on the page will be absolute and point to the first host for which the page entry is generated and cached.). Visitors under other hosts names will now receive the cached page that points to the other host.
Simple adding two options: cache_with_host_variables, and make_id_with_host_variables, and an additional case inside the swith in _makeId would do the trick.
Of course, in the mean time, one could use a custom front end to do this.
Comments
Posted by Fabien MARTY (fab) on 2009-07-17T11:03:34.000+0000
change Assignee because I'm inactive now
Posted by Rob Allen (rob) on 2012-11-20T20:52:55.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.