Re: Strange different behavior

2010-01-14 Thread Kristian Lyngstol
On Wed, Jan 13, 2010 at 06:45:26PM +0100, Bernardf FRIT wrote:
> Hi,
> 
> I'm facing a pretty strange issue. URLs not supposed to be cached are in
> cache when
> requested by firefox but not by lwp.

(...)

> Vary: Accept-Encoding,User-Agent

This is why.

Vary: means "this page will look different depending on the following
client headers".

Your backend is telling Varnish to expect different variants of the page
depending on what Accept-Encoding AND User-Agent header the client
provides. Accept-Encoding is normal and sane (ie: if one client supports
gzip and an other does not, one client will get a compressed variant of the
page and the other client the uncompressed one).

Vary on User-Agent is generally bad, and you should Just Fix That [tm].

Due to Vary: Accept-Encoding, lwp-request and Firefox will still get
different variants, but you can supply the Accept-Encoding header to
lwp-request, but if you want the content, you'll need to pipe it through
gunzip (headers are still readable).

-- 
Kristian Lyngstøl
Redpill Linpro AS
Mob: +47 99014497


pgpvY82yV0SD3.pgp
Description: PGP signature
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Does a Varnish restart clear the existing cache?

2010-01-14 Thread Poul-Henning Kamp
In message , John N
orman writes:
>I think the answer is "no," but . . .
>
>Does a Varnish restart clear the existing cache?
>
>(using the "file" storage.)

Actually it does, we are working on the "persistent" storage module.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
p...@freebsd.org | 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
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Does a Varnish restart clear the existing cache?

2010-01-14 Thread John Norman
I think the answer is "no," but . . .

Does a Varnish restart clear the existing cache?

(using the "file" storage.)
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc