I based my vanrish config on these recommendations from mediawiki: https://www.mediawiki.org/wiki/Manual:Varnish_caching
And I do have that setting in my VLC that bypasses the cache for any
cookies it finds:
# Pass requests from logged-in users directly.
if (req.http.Authorization || req.http.Cookie)
{return(pass);} /* Not cacheable by default */
you could also check req.http.Cookie's content to check if the session
cookie is there, and not unset them in this case. In other cases when user
is not logged in, it's probably safe to unset them and show the static
version of the page from cache, instead of the logged in version.
That's a good suggestion. I'll look into how to do that!
In the meantime, I'll enclose my current VCL as an attachment, in case
there are any other suggestions based on what I have in the config.
Thanks
Tim
On Mon, Aug 17, 2015 at 12:47 PM, Poul-Henning Kamp <[email protected]>
wrote:
> --------
>
> I think I saw a mediawiki/wikimedia (I can never figure out how
> that split is supposed to work...) page about setting up Varnish
> in front. Have you checked if there's a explanation there ?
>
> --
> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
> [email protected] | TCP/IP since RFC 956
> FreeBSD committer | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
default.vcl
Description: Binary data
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
