Zope/Plone and Varnish
Joao Correia
joao.correia at gmail.com
Thu Sep 13 14:03:37 CEST 2007
Hello,
Im trying vernish out. I compiled it from source, everything nice.
I then used CacheFu to generate the vcl file. Im running Varnish in
port 80 .
It has some strange behauviour I cannot explain, if enable cache on
authenticated sessions the page screws up badly, seams css doesnt load
and I cant understand why.
Also sending content using the form (Exfile, or image) doesnt work.
/* Do not cache when authenticated via HTTP Basic or Digest
Authentication */
if (req.http.Authenticate || req.http.Authorization) {
/* pipe; */
lookup;
}
/* Do not cache when authenticated via "__ac" cookies */
if (req.http.Cookie && req.http.Cookie ~ "__ac=") {
/* pipe; */
lookup;
}
/* Do not cache when authenticated via "_ZopeId" cookies */
if (req.http.Cookie && req.http.Cookie ~ "_ZopeId=") {
/* pipe; */
lookup;
}
Other thing is: Can I make lets say a /content on Varnish to be
http://remote.url/var/$1
On my website I fetch an html from another server using Ajax and it
doesnt work because ajax cant
communicate with other domains because of security issues.
Any tips ?
Thanks
Joao Correia
More information about the varnish-misc
mailing list