warmup with curl not working

Cosimo Streppone cosimo at streppone.it
Thu Nov 24 20:18:55 CET 2011

On Thu, 24 Nov 2011 19:59:35 +0100, <me at ibotty.net> wrote:

> the only problem so far is, that my warmup script is not working.
> i warm the cache with
>  curl -sSH 'X-Refresh: DOIT' localhost:80/test/
> and when accessed again with
>  curl localhost:80/test/
> it gets the cached copy.
> but with firefox, it does not hit the cache the first time (it works the
> next time).

Here comes the standard answer :)

1) Restart varnish
2) Run "varnishlog" and keep it running, recording the output
3) Make your request with curl. Repeat it.
4) Make your request with firefox. Repeat it.

Output of "varnishlog" will usually reveal the truth.
If not to you, to someone on this list :)



More information about the varnish-misc mailing list