Cached image's files by Mime-Type

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

Samuel Martin <samuel.martin at> 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.

Dag-Erling Smørgrav
Senior Software Developer
Linpro AS -

More information about the varnish-test mailing list