Cached image's files by Mime-Type

Dag-Erling Smørgrav des at linpro.no
Mon Jan 21 23:14:27 CET 2008


Samuel Martin <samuel.martin at makina-corpus.com> writes:
> if (resp.http.Content-Type ~ "image*")

That's not a valid regex (well, it is, but it doesn't do what you think)

> And I can't load varnish : Variable 'resp.http.Content-Type' not
> accessible in method 'vcl_fetch'.

Because there is no resp in vcl_fetch in 1.1; it's called obj.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no


More information about the varnish-test mailing list