Hi, I did make some progress: it seems, that varnish is normally not capable of parsing documents which not start with a "<". https://www.varnish-cache.org/docs/trunk/users-guide/esi.html#doing-esi-on-json-and-other-non-xmlish-content. And you can change this behavior by switching a param on the daemon: https://www.varnish-cache.org/docs/3.0/reference/varnishd.html (look for the »esi_syntax«). But if I change it, I get a message vom varnish: »<esi:include> has multiple src= attributes«.
Also, if I want to overwrite the output done by oxid with a module for this call is very annoying, because the oxshopcontrol::_process() function must be complete overwritten, which I want to avoid, because of the complex things happening in there... Toni Am 20.03.2014 um 17:00 schrieb Linas Kukulskis <[email protected]>: > hi, > > thanks for you letter, we will investigate this issue, and next week give you > an answer. > > Linas Kukulskis > Developer > > [email protected] > Phone +370 37 333053 > Fax +370 37 333054 > www.oxid-esales.com > > > OXID eSales AG > Bertoldstraße 48, 79098 Freiburg, Germany > > Lithuanian Division > Brastos g. 15, Kaunas LT-44158, Lithuania > > > ________________________________________ > From: [email protected] > [[email protected]] on behalf of Anton Scheib > [[email protected]] > Sent: Wednesday, March 19, 2014 6:34 PM > To: [email protected] > Subject: [oxid-dev-general] Varnish and renderPartial > > Hi, > > I try to get a template delivered as JSON while using the param > »renderPartial=true«. This template includes a call to a widget, which > regarding to this bug (https://bugs.oxid-esales.com/view.php?id=5121) can be > modified with a module to deliver html and not json itself. > But while activating the varnish cash, it gets even worse, because I now get > delivered esi-tags, which are not parsed through the varnish anymore. Has any > of you discovered the same and has a solution for me? Also, is this a bug or > is this just "normal" behaviour? Or do I have to change the varnish > configuration? > > Sorry to Blume2000.de, but to show you my problem you can simply call this > url: http://www.blume2000.de/?renderPartial=true. There you see the included > esi-tags in the source code. > > > Thanks for your help! > > Toni > _______________________________________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general > _______________________________________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general > _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
