<p dir="ltr"><br>
On Dec 14, 2015 17:47, "<a href="mailto:georgi.int@gmail.com">georgi.int@gmail.com</a>" <<a href="mailto:georgi.int@gmail.com">georgi.int@gmail.com</a>> wrote:<br>
><br>
> Logs didn't help me. Now I faced the same problem with php file which didn't refresh until varnish restart. After I put the following in vcl_recv { the problem was solved:<br>
><br>
> if (req.url ~ "\.(png|gif|jp(e?)g|avi|flv|mp(e?)g|mp4|mp3|php|js)"){return(pass);}<br>
><br>
> But why I should add this after I have :<br>
><br>
><br>
> if (req.http.Authorization || req.http.Cookie) {<br>
> return (pass);<br>
> }<br>
> }<br>
><br>
> and is there better solution than the first one that wills top completely the cache? Also, I use the same config file on all servers and there isn't such a problem now, only on this customer.<br>
><br>
> This is the log of the request befor I add the pass for certaing type of files:<br>
><br>
> 58 TxResponse c OK<br>
> 58 TxHeader c Server: Apache<br>
> 58 TxHeader c Last-Modified: Mon, 12 Jul 2010 06:40:00 GMT<br>
> 58 TxHeader c Content-Type: text/html<br>
> 58 TxHeader c Content-Length: 5774<br>
> 58 TxHeader c Accept-Ranges: bytes<br>
> 58 TxHeader c Date: Mon, 14 Dec 2015 16:30:58 GMT<br>
> 58 TxHeader c Connection: keep-alive<br>
> 58 Length c 5774<br>
> 58 ReqEnd c 2078285659 1450110658.014697075 1450110658.033298254 1.481907368 0.018534422 0.000066757<br>
> 69 Debug c herding<br>
> 69 SessionClose c timeout<br>
> 69 StatSess c 212.233.149.2 54693 3 1 14 0 14 14 3823 211709<br>
> 16 Debug c herding<br>
> 16 Interrupted c ReqStart<br>
> 16 ReqStart c 1.1.1.1 33259 2078285660<br>
> 16 RxRequest c GET<br>
> 16 RxURL c /testov.php<br>
> 16 RxProtocol c HTTP/1.1<br>
> 16 RxHeader c Host: <a href="http://siteofmycustomer.com">siteofmycustomer.com</a><br>
> 16 RxHeader c User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0<br>
> 16 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>
> 16 RxHeader c Accept-Language: en-US,en;q=0.5<br>
> 16 RxHeader c Accept-Encoding: gzip, deflate<br>
> 16 RxHeader c Connection: keep-alive<br>
> 16 RxHeader c Cache-Control: max-age=0<br>
> 16 VCL_call c recv lookup<br>
> 16 VCL_call c hash<br>
> 16 Hash c /testov.php<br>
> 16 Hash c <a href="http://termoproekt.bg">termoproekt.bg</a><br>
> 16 VCL_return c hash<br>
> 16 Hit c 2078285077<br>
> 16 VCL_call c hit deliver<br>
> 16 VCL_call c deliver deliver<br>
> 16 TxProtocol c HTTP/1.1<br>
> 16 TxStatus c 200<br>
> 16 TxResponse c OK<br>
> 16 TxHeader c Server: Apache<br>
> 16 TxHeader c Content-Type: text/html; charset=UTF-8<br>
> 16 TxHeader c Content-Length: 0<br>
> 16 TxHeader c Accept-Ranges: bytes<br>
> 16 TxHeader c Date: Mon, 14 Dec 2015 16:30:58 GMT<br>
> 16 TxHeader c Connection: keep-alive<br>
> 16 Length c 0<br>
><br>
Looking at the request (id 16), I see no reason for it to pass as it has no cookie or authorization header.</p>
<p dir="ltr">Varnish seems to be doing the right thing.</p>