I think I did not make it very clear, let me explain I have a file named abc.html as below <html> <head> <title>Test</title? <body> <p>Test Page</p> <p><esi:include src="/cgi-bin/abc.php"/></p> </body> </html>
This abc.php sends cookie, what I want is to cache all the contents of abc.html and when doing esi processing (abc.php) include the Set-Cookie header sent by abc.php with the response. right now, abc.html is being cached and esi processing for abc.php is also working but Set-Cookie header sent by abc.php is not being sent to client. possible? On Sat, Oct 13, 2012 at 7:38 AM, Paul A. Procacci <[email protected]>wrote: > On Fri, Oct 12, 2012 at 03:22:07PM +0530, linuxsupport wrote: > > Hi All, > > I have an application which sends cookie, home page has 75% static > > contents and 25% dynamic. > > is there a way to cache the static part of the page while get the > > dynamic contents using ESI. > > I know if application does not send cookie then there is no problem, > > but cookie is important in our case. > > Please suggest what possible way it can be achieve. > > Thanks > > If a cookie exists, don't pass it, and `return (lookup)`? > > The vcl is pretty clear about passing requests with cookies to the > backend, but your vcl can be modified quite easily change this function- > ality. > > Perhaps I'm not completely understanding the question. > > ~Paul > > ________________________________ > > This message may contain confidential or privileged information. If you > are not the intended recipient, please advise us immediately and delete > this message. See http://www.datapipe.com/legal/email_disclaimer/ for > further information on confidentiality and the risks of non-secure > electronic communication. If you cannot access these links, please notify > us by reply message and we will send the contents to you. >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
