File served without vcl_fetch() being invoked.

Vedad KAJTAZ, Kigo Inc. vedad at kigo.net
Wed Feb 29 14:16:17 CET 2012


Hi,

I'm totally new to Varnish, so I might be missing something obvious.

I have an issue with the following setup, where vcl_fetch() doesn't seem 
to be invoked (most of the time) for a particular file (evidence by 
syslog).

The request doesn't appear in varnishlog/varnishncsa either, but the 
file IS requested from the backend by the varnish server, and IS being 
served to end client on nearly every request (with the exception of few 
requests where it actually does go through vcl_recv() and the cache).

Environment: Back-end Apache server, Varnish 3.0.2 on FreeBSD 8.2 
(amd64), Chrome client on Windows 7 with client cache disabled. No other 
proxy in between.

The varnish cache listens on 87.98.213.163 port 80.
The "page" being tested is http://marais-apartments.com/le_marais.html.
I've altered the "hosts" file on the client to point the domain name to 
the above varnish IP address.

Only one client is testing at a time.

The varnish config file:

http://pastebin.com/ZqM7A5LP

Sample /var/log/syslog excerpt:

http://pastebin.com/YiWfCqtJ


Note that the GET request to the file 
/img/4aa49f0874eb11168795c4f9a904c62d2b33d4cc947b3207a9d43e7c4a6e963d.png does 
not appear in syslog (hence does not go through vcl_fetch), nor does it 
appear in varnishlog/varnishncsa.


However, the file IS being requested from the backend. This is the 
excerpt from the back-end server related to the above request:

http://pastebin.com/kmUghduu


Is this normal behavior, a misconfiguration, or a bug?
I will gladly provide more information upon request.

Regards,

-- 
Vedad KAJTAZ

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4906 bytes
Desc: Signature cryptographique S/MIME
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120229/a9508a3d/attachment.bin>


More information about the varnish-misc mailing list