<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many Thanks to you (<b>Vlad Rusu</b>), my problem solved.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Vlad Rusu <vlad.rusu@lola.tech><br>
<b>Sent:</b> Sunday, December 15, 2019 12:09 PM<br>
<b>To:</b> hamidreza hosseini <hrhosseini@hotmail.com><br>
<b>Cc:</b> Guillaume Quintard <guillaume@varnish-software.com>; varnish-misc@varnish-cache.org <varnish-misc@varnish-cache.org><br>
<b>Subject:</b> Re: Varnish doesnt purge</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">I think the following will explain this in great detail
<div class=""><br class="">
</div>
<div class=""><a href="http://varnish-cache.org/docs/6.3/users-guide/vcl-hashing.html" class="">http://varnish-cache.org/docs/6.3/users-guide/vcl-hashing.html</a></div>
<div class=""><a href="https://github.com/varnishcache/varnish-cache/blob/6.3/bin/varnishd/builtin.vcl#L87-L95" class="">https://github.com/varnishcache/varnish-cache/blob/6.3/bin/varnishd/builtin.vcl#L87-L95</a></div>
<div class=""><br class="">
</div>
<div class="">By default (your case) any cache entry will be uniquely identified by the following combination: host header + url</div>
<div class=""><br class="">
</div>
<div class="">No matter how many varnish server you stack, unless you specifically alter the Host header in one of them, they will all store the object in their own storage using the same hash key</div>
<div class=""><br class="">
</div>
<div class="">If you call for <a href="https://google.com/a" class="">https://google.com/a</a> and you have stacked 2 varnishes, both of them will save the object as:
<a href="http://google.com/a" class="">google.com/a</a></div>
<div class=""><br class="">
</div>
<div class="">When you want to purge that object, you have to send the same data - which is why I gave you an example that altered the the Host header when sending the PURGE request to the 2nd varnish</div>
<div class=""><br class="">
</div>
<div class="">I’m personally a fan of BANNING when using varnish-cache (non commercial). Read more about this below.</div>
<div class=""><a href="https://varnish-cache.org/docs/6.3/users-guide/purging.html" class="">https://varnish-cache.org/docs/6.3/users-guide/purging.html</a> + <a href="https://book.varnish-software.com/4.0/chapters/Cache_Invalidation.html#lurker-friendly-bans" class="">https://book.varnish-software.com/4.0/chapters/Cache_Invalidation.html#lurker-friendly-bans</a></div>
<div class=""><br class="">
</div>
<div class="">Also worth printing this one on your wall if you want to truly understand the journey of a request through varnish <a href="http://varnish-cache.org/docs/6.3/reference/states.html#reference-states" class="">http://varnish-cache.org/docs/6.3/reference/states.html#reference-states</a></div>
<div class="">
<div class="">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<br class="">
Thanks,<br class="">
<br class="">
—</div>
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<b class="">Vlad Rusu</b><br class="">
Cell: +40758066019<br class="">
<br class="">
</div>
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
Lola Tech | <a href="https://lola.tech" class="">lola.tech</a></div>
</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Dec 2019, at 21:54, hamidreza hosseini <<a href="mailto:hrhosseini@hotmail.com" class="">hrhosseini@hotmail.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="">
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
Many Thanks for your answer <br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
You mean that in production i should add additional header to my purge request because it stored this with the header content like the ip address of first varnish
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
OK, for purging i need wich header to add to my purge request and how can i get that what are that? And how they stored and how can i purge them
<br class="">
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
Best Regards <br class="">
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
<span id="x_OutlookSignature" class="">
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
Get <a href="https://aka.ms/ghei36" class="">Outlook for Android</a></div>
</span><br class="">
</div>
<hr tabindex="-1" class="" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b> Vlad Rusu <<a href="mailto:vlad.rusu@lola.tech" class="">vlad.rusu@lola.tech</a>><br class="">
<b class="">Sent:</b> Sunday, December 15, 2019 11:16:59 PM<br class="">
<b class="">To:</b> hamidreza hosseini <<a href="mailto:hrhosseini@hotmail.com" class="">hrhosseini@hotmail.com</a>><br class="">
<b class="">Cc:</b> Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" class="">guillaume@varnish-software.com</a>>;
<a href="mailto:varnish-misc@varnish-cache.org" class="">varnish-misc@varnish-cache.org</a> <<a href="mailto:varnish-misc@varnish-cache.org" class="">varnish-misc@varnish-cache.org</a>><br class="">
<b class="">Subject:</b> Re: Varnish doesnt purge</font>
<div class=""> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Try this when purging
<div class=""><br class="">
</div>
<div class=""><b class="">varnish ram</b>: curl -v -k -X PURGE <a href="http://192.168.200.13/Naserfeiz.mp4" class="">http://192.168.200.13/Naserfeiz.mp4</a> -o /dev/null -H "newtrack: yes"</div>
<div class=""><br class="">
</div>
<div class=""><b class="">varnish file (2nd one)</b>: curl -v -k -X PURGE <a href="http://192.168.200.12:8080/Naserfeiz.mp4" class="">
http://192.168.200.12:8080/Naserfeiz.mp4</a> -o /dev/null -H "newtrack: yes” -H "Host: <a href="http://192.168.200.13/Naserfeiz.mp4" target="_blank" class="">192.168.200.13</a>”</div>
<div class=""><br class="">
</div>
<div class="">Notice the difference? You to understand HOW content is stored in varnish’s storage in order to understand how to evict it - my comment about the hash routine</div>
<div class="">
<div class="">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<br class="">
Thanks</div>
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Dec 2019, at 21:31, hamidreza hosseini <<a href="mailto:hrhosseini@hotmail.com" class="">hrhosseini@hotmail.com</a>> wrote:</div>
<br class="x_x_Apple-interchange-newline">
<div class="">
<div class="">
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
I dont understand your message, <br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
I cant solve this problem <br class="">
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
Instead of saying "appericiate to your diplomacy!!!!!!!!!!" you can help me! <br class="">
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
I dont have enough knoledge on Varnish, <br class="">
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
I dont get your text  about hash, i didnt use hash. <br class="">
<br class="">
</div>
<div dir="auto" class="" style="direction:ltr; margin:0px; padding:0px; font-family:sans-serif; font-size:11pt">
Best Regards <br class="">
</div>
<div id="x_x_ms-outlook-mobile-signature" dir="auto" class="" style="text-align:left">
<div class=""><br class="">
</div>
<br class="">
</div>
<hr tabindex="-1" class="" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b> Vlad Rusu <<a href="mailto:vlad.rusu@lola.tech" class="">vlad.rusu@lola.tech</a>><br class="">
<b class="">Sent:</b> Sunday, December 15, 2019 7:48:42 PM<br class="">
<b class="">To:</b> hamidreza hosseini <<a href="mailto:hrhosseini@hotmail.com" class="">hrhosseini@hotmail.com</a>><br class="">
<b class="">Cc:</b> Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" class="">guillaume@varnish-software.com</a>>;
<a href="mailto:varnish-misc@varnish-cache.org" class="">varnish-misc@varnish-cache.org</a> <<a href="mailto:varnish-misc@varnish-cache.org" class="">varnish-misc@varnish-cache.org</a>><br class="">
<b class="">Subject:</b> Re: Varnish doesnt purge</font>
<div class=""> </div>
</div>
<div class="">
<div class="">
<div class="">
<div dir="auto" class="">I appreciate Guillaume’s diplomacy :)</div>
</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">Your issue (one of them at least) is that in your cascaded varnish setup the hash key of the cached url, in both varnish storages, is the one you use to originally access the asset. Your vcl hash routine might also be a custom one..
 that would be the next thing to look at if what I’m saying here doesn’t fix it. </div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">So, purge</div>
<div dir="auto" class=""><a href="http://192.168.200.13/Naserfeiz.mp4" target="_blank" class="">http://192.168.200.13/Naserfeiz.mp4</a></div>
<div dir="auto" class="">and NOT</div>
<div dir="auto" class="">
<div class=""><a href="http://192.168.200.12:8080/Naserfeiz.mp4" target="_blank" class="">http://192.168.200.12:8080/Naserfeiz.mp4</a></div>
when in the cascaded setup</div>
</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">Cheers</div>
<div class="">
<div class=""><br class="">
<div class="x_x_x_gmail_quote">
<div dir="ltr" class="x_x_x_gmail_attr">On Sat, 14 Dec 2019 at 09:16, hamidreza hosseini <<a href="mailto:hrhosseini@hotmail.com" target="_blank" class="">hrhosseini@hotmail.com</a>> wrote:<br class="">
</div>
<blockquote class="x_x_x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr" class="">
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Hi,</div>
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
Please annwer my question, I sent you my test</div>
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
</div>
<div dir="ltr" class="">
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
</div>
<div id="x_x_x_m_1231143223751743120m_-3046864990878589310appendonsend" class="">
</div>
<hr class="" style="display:inline-block; width:98%">
<div id="x_x_x_m_1231143223751743120m_-3046864990878589310divRplyFwdMsg" dir="ltr" class="">
<font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b> varnish-misc <varnish-misc-bounces+hrhosseini=<a href="mailto:hotmail.com@varnish-cache.org" target="_blank" class="">hotmail.com@varnish-cache.org</a>> on behalf of hamidreza
 hosseini <<a href="mailto:hrhosseini@hotmail.com" target="_blank" class="">hrhosseini@hotmail.com</a>><br class="">
<b class="">Sent:</b> Wednesday, December 11, 2019 11:49 PM<br class="">
<b class="">To:</b> Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" target="_blank" class="">guillaume@varnish-software.com</a>><br class="">
<b class="">Cc:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank" class="">
varnish-misc@varnish-cache.org</a> <<a href="mailto:varnish-misc@varnish-cache.org" target="_blank" class="">varnish-misc@varnish-cache.org</a>><br class="">
<b class="">Subject:</b> Re: Varnish doesnt purge</font>
<div class=""> </div>
</div>
<div dir="ltr" class=""><span class="">I do all steps now again, this is the resault:<br class="">
</span>
<div class="">STEP ONE:<br class="">
</div>
<div class="">First of all i configure a varnish (with file backend) in front of swift/Nginx and i ask the url that exist in swift with curl,<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish-file$curl -I <a href="http://192.168.200.12:8080/Naserfeiz.mp4" target="_blank" class="">
http://192.168.200.12:8080/Naserfeiz.mp4</a> -H "newtrack: yes"<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">HTTP/1.1 200 OK<br class="">
</div>
<div class="">Server: nginx<br class="">
</div>
<div class="">Date: Thu, 12 Dec 2019 07:29:32 GMT<br class="">
</div>
<div class="">Content-Type: text/plain<br class="">
</div>
<div class="">Content-Length: 23521499<br class="">
</div>
<div class="">Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">X-Varnish: 2<br class="">
</div>
<div class="">Age: 0<br class="">
</div>
<div class="">Via: 1.1 varnish (Varnish/6.0)<br class="">
</div>
<div class="">Accept-Ranges: bytes<br class="">
</div>
<div class="">Connection: keep-alive<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish cach that object and then i purge the url:<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish-file$ curl -v -k -X PURGE <a href="http://192.168.200.12:8080/Naserfeiz.mp4" target="_blank" class="">
http://192.168.200.12:8080/Naserfeiz.mp4</a> -o /dev/null -H "newtrack: yes"<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">*   Trying 192.168.200.12...<br class="">
</div>
<div class="">  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br class="">
</div>
<div class="">                                 Dload  Upload   Total   Spent    Left  Speed<br class="">
</div>
<div class="">  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 192.168.200.12 (192.168.200.12) port 8080 (#0)<br class="">
</div>
<div class="">> PURGE /Naserfeiz.mp4 HTTP/1.1<br class="">
</div>
<div class="">> Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">> User-Agent: curl/7.47.0<br class="">
</div>
<div class="">> Accept: */*<br class="">
</div>
<div class="">> newtrack: yes<br class="">
</div>
<div class="">> <br class="">
</div>
<div class="">< HTTP/1.1 200 Purged<br class="">
</div>
<div class="">< Date: Thu, 12 Dec 2019 07:29:16 GMT<br class="">
</div>
<div class="">< Server: Varnish<br class="">
</div>
<div class="">< X-Varnish: 32770<br class="">
</div>
<div class="">< Content-Type: text/html; charset=utf-8<br class="">
</div>
<div class="">< Retry-After: 5<br class="">
</div>
<div class="">< Content-Length: 240<br class="">
</div>
<div class="">< Accept-Ranges: bytes<br class="">
</div>
<div class="">< Connection: keep-alive<br class="">
</div>
<div class="">< <br class="">
</div>
<div class="">{ [240 bytes data]<br class="">
</div>
<div class="">100   240  100   240    0     0   124k      0 --:--:-- --:--:-- --:--:--  234k<br class="">
</div>
<div class="">* Connection #0 to host 192.168.200.12 left intact<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">The object purged successfully and it didnt exist in cach anymore.<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">This is varnishlog resault:<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish-file$ sudo varnishlog -d  -g request<br class="">
</div>
<div class="">*   << Request  >> 2         <br class="">
</div>
<div class="">-   Begin          req 1 rxreq<br class="">
</div>
<div class="">-   Timestamp      Start: 1576135743.442646 0.000000 0.000000<br class="">
</div>
<div class="">-   Timestamp      Req: 1576135743.442646 0.000000 0.000000<br class="">
</div>
<div class="">-   ReqStart       192.168.200.12 5432 a0<br class="">
</div>
<div class="">-   ReqMethod      HEAD<br class="">
</div>
<div class="">-   ReqURL         /Naserfeiz.mp4<br class="">
</div>
<div class="">-   ReqProtocol    HTTP/1.1<br class="">
</div>
<div class="">-   ReqHeader      Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">-   ReqHeader      User-Agent: curl/7.47.0<br class="">
</div>
<div class="">-   ReqHeader      Accept: */*<br class="">
</div>
<div class="">-   ReqHeader      newtrack: yes<br class="">
</div>
<div class="">-   ReqHeader      X-Forwarded-For: 192.168.200.12<br class="">
</div>
<div class="">-   VCL_call       RECV<br class="">
</div>
<div class="">-   VCL_return     hash<br class="">
</div>
<div class="">-   VCL_call       HASH<br class="">
</div>
<div class="">-   VCL_return     lookup<br class="">
</div>
<div class="">-   VCL_call       MISS<br class="">
</div>
<div class="">-   VCL_return     fetch<br class="">
</div>
<div class="">-   Link           bereq 3 fetch<br class="">
</div>
<div class="">-   Timestamp      Fetch: 1576135743.444347 0.001701 0.001701<br class="">
</div>
<div class="">-   RespProtocol   HTTP/1.1<br class="">
</div>
<div class="">-   RespStatus     200<br class="">
</div>
<div class="">-   RespReason     OK<br class="">
</div>
<div class="">-   RespHeader     Server: nginx<br class="">
</div>
<div class="">-   RespHeader     Date: Thu, 12 Dec 2019 07:29:32 GMT<br class="">
</div>
<div class="">-   RespHeader     Content-Type: text/plain<br class="">
</div>
<div class="">-   RespHeader     Content-Length: 23521499<br class="">
</div>
<div class="">-   RespHeader     Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">-   RespHeader     ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">-   RespHeader     X-Varnish: 2<br class="">
</div>
<div class="">-   RespHeader     Age: 0<br class="">
</div>
<div class="">-   RespHeader     Via: 1.1 varnish (Varnish/6.0)<br class="">
</div>
<div class="">-   VCL_call       DELIVER<br class="">
</div>
<div class="">-   VCL_return     deliver<br class="">
</div>
<div class="">-   Timestamp      Process: 1576135743.444382 0.001736 0.000036<br class="">
</div>
<div class="">-   RespHeader     Accept-Ranges: bytes<br class="">
</div>
<div class="">-   RespHeader     Connection: keep-alive<br class="">
</div>
<div class="">-   Timestamp      Resp: 1576135743.444474 0.001828 0.000092<br class="">
</div>
<div class="">-   ReqAcct        112 0 112 295 0 295<br class="">
</div>
<div class="">-   End            <br class="">
</div>
<div class="">**  << BeReq    >> 3         <br class="">
</div>
<div class="">--  Begin          bereq 2 fetch<br class="">
</div>
<div class="">--  VCL_use        boot<br class="">
</div>
<div class="">--  Timestamp      Start: 1576135743.442807 0.000000 0.000000<br class="">
</div>
<div class="">--  BereqMethod    HEAD<br class="">
</div>
<div class="">--  BereqURL       /Naserfeiz.mp4<br class="">
</div>
<div class="">--  BereqProtocol  HTTP/1.1<br class="">
</div>
<div class="">--  BereqHeader    Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">--  BereqHeader    User-Agent: curl/7.47.0<br class="">
</div>
<div class="">--  BereqHeader    Accept: */*<br class="">
</div>
<div class="">--  BereqHeader    newtrack: yes<br class="">
</div>
<div class="">--  BereqHeader    X-Forwarded-For: 192.168.200.12<br class="">
</div>
<div class="">--  BereqMethod    GET<br class="">
</div>
<div class="">--  BereqHeader    Accept-Encoding: gzip<br class="">
</div>
<div class="">--  BereqHeader    X-Varnish: 3<br class="">
</div>
<div class="">--  VCL_call       BACKEND_FETCH<br class="">
</div>
<div class="">--  VCL_return     fetch<br class="">
</div>
<div class="">--  BackendOpen    27 boot.swift_proxy_1 192.168.200.11 8080 192.168.200.12 6846<br class="">
</div>
<div class="">--  BackendStart   192.168.200.11 8080<br class="">
</div>
<div class="">--  Timestamp      Bereq: 1576135743.443586 0.000779 0.000779<br class="">
</div>
<div class="">--  Timestamp      Beresp: 1576135743.444017 0.001210 0.000431<br class="">
</div>
<div class="">--  BerespProtocol HTTP/1.1<br class="">
</div>
<div class="">--  BerespStatus   200<br class="">
</div>
<div class="">--  BerespReason   OK<br class="">
</div>
<div class="">--  BerespHeader   Server: nginx<br class="">
</div>
<div class="">--  BerespHeader   Date: Thu, 12 Dec 2019 07:29:32 GMT<br class="">
</div>
<div class="">--  BerespHeader   Content-Type: text/plain<br class="">
</div>
<div class="">--  BerespHeader   Content-Length: 23521499<br class="">
</div>
<div class="">--  BerespHeader   Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">--  BerespHeader   Connection: keep-alive<br class="">
</div>
<div class="">--  BerespHeader   ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">--  BerespHeader   Accept-Ranges: bytes<br class="">
</div>
<div class="">--  TTL            RFC 120 10 0 1576135743 1576135743 1576135772 0 0 cacheable<br class="">
</div>
<div class="">--  VCL_call       BACKEND_RESPONSE<br class="">
</div>
<div class="">--  TTL            VCL 86400 10 0 1576135743 cacheable<br class="">
</div>
<div class="">--  VCL_return     deliver<br class="">
</div>
<div class="">--  Storage        file s0<br class="">
</div>
<div class="">--  Fetch_Body     3 length stream<br class="">
</div>
<div class="">--  BackendReuse   27 boot.swift_proxy_1<br class="">
</div>
<div class="">--  Timestamp      BerespBody: 1576135743.747835 0.305028 0.303818<br class="">
</div>
<div class="">--  Length         23521499<br class="">
</div>
<div class="">--  BereqAcct      181 0 181 241 23521499 23521740<br class="">
</div>
<div class="">--  End            <br class="">
</div>
<div class=""><br class="">
</div>
<div class="">*   << Request  >> 32770     <br class="">
</div>
<div class="">-   Begin          req 32769 rxreq<br class="">
</div>
<div class="">-   Timestamp      Start: 1576135756.680792 0.000000 0.000000<br class="">
</div>
<div class="">-   Timestamp      Req: 1576135756.680792 0.000000 0.000000<br class="">
</div>
<div class="">-   ReqStart       192.168.200.12 5438 a0<br class="">
</div>
<div class="">-   ReqMethod      PURGE<br class="">
</div>
<div class="">-   ReqURL         /Naserfeiz.mp4<br class="">
</div>
<div class="">-   ReqProtocol    HTTP/1.1<br class="">
</div>
<div class="">-   ReqHeader      Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">-   ReqHeader      User-Agent: curl/7.47.0<br class="">
</div>
<div class="">-   ReqHeader      Accept: */*<br class="">
</div>
<div class="">-   ReqHeader      newtrack: yes<br class="">
</div>
<div class="">-   ReqHeader      X-Forwarded-For: 192.168.200.12<br class="">
</div>
<div class="">-   VCL_call       RECV<br class="">
</div>
<div class="">-   VCL_return     purge<br class="">
</div>
<div class="">-   VCL_call       HASH<br class="">
</div>
<div class="">-   VCL_return     lookup<br class="">
</div>
<div class="">-   VCL_call       PURGE<br class="">
</div>
<div class="">-   VCL_return     synth<br class="">
</div>
<div class="">-   Timestamp      Process: 1576135756.680982 0.000190 0.000190<br class="">
</div>
<div class="">-   RespHeader     Date: Thu, 12 Dec 2019 07:29:16 GMT<br class="">
</div>
<div class="">-   RespHeader     Server: Varnish<br class="">
</div>
<div class="">-   RespHeader     X-Varnish: 32770<br class="">
</div>
<div class="">-   RespProtocol   HTTP/1.1<br class="">
</div>
<div class="">-   RespStatus     200<br class="">
</div>
<div class="">-   RespReason     OK<br class="">
</div>
<div class="">-   RespReason     Purged<br class="">
</div>
<div class="">-   VCL_call       SYNTH<br class="">
</div>
<div class="">-   RespHeader     Content-Type: text/html; charset=utf-8<br class="">
</div>
<div class="">-   RespHeader     Retry-After: 5<br class="">
</div>
<div class="">-   VCL_return     deliver<br class="">
</div>
<div class="">-   RespHeader     Content-Length: 240<br class="">
</div>
<div class="">-   Storage        malloc Transient<br class="">
</div>
<div class="">-   RespHeader     Accept-Ranges: bytes<br class="">
</div>
<div class="">-   RespHeader     Connection: keep-alive<br class="">
</div>
<div class="">-   Timestamp      Resp: 1576135756.681190 0.000399 0.000208<br class="">
</div>
<div class="">-   ReqAcct        113 0 113 218 240 458<br class="">
</div>
<div class="">-   End            <br class="">
</div>
<div class=""><br class="">
</div>
<div class="">*   << Request  >> 32772     <br class="">
</div>
<div class="">-   Begin          req 32771 rxreq<br class="">
</div>
<div class="">-   Timestamp      Start: 1576135769.304679 0.000000 0.000000<br class="">
</div>
<div class="">-   Timestamp      Req: 1576135769.304679 0.000000 0.000000<br class="">
</div>
<div class="">-   ReqStart       192.168.200.12 5440 a0<br class="">
</div>
<div class="">-   ReqMethod      HEAD<br class="">
</div>
<div class="">-   ReqURL         /Naserfeiz.mp4<br class="">
</div>
<div class="">-   ReqProtocol    HTTP/1.1<br class="">
</div>
<div class="">-   ReqHeader      Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">-   ReqHeader      User-Agent: curl/7.47.0<br class="">
</div>
<div class="">-   ReqHeader      Accept: */*<br class="">
</div>
<div class="">-   ReqHeader      newtrack: yes<br class="">
</div>
<div class="">-   ReqHeader      X-Forwarded-For: 192.168.200.12<br class="">
</div>
<div class="">-   VCL_call       RECV<br class="">
</div>
<div class="">-   VCL_return     hash<br class="">
</div>
<div class="">-   VCL_call       HASH<br class="">
</div>
<div class="">-   VCL_return     lookup<br class="">
</div>
<div class="">-   VCL_call       MISS<br class="">
</div>
<div class="">-   VCL_return     fetch<br class="">
</div>
<div class="">-   Link           bereq 32773 fetch<br class="">
</div>
<div class="">-   Timestamp      Fetch: 1576135769.306630 0.001951 0.001951<br class="">
</div>
<div class="">-   RespProtocol   HTTP/1.1<br class="">
</div>
<div class="">-   RespStatus     200<br class="">
</div>
<div class="">-   RespReason     OK<br class="">
</div>
<div class="">-   RespHeader     Server: nginx<br class="">
</div>
<div class="">-   RespHeader     Date: Thu, 12 Dec 2019 07:29:58 GMT<br class="">
</div>
<div class="">-   RespHeader     Content-Type: text/plain<br class="">
</div>
<div class="">-   RespHeader     Content-Length: 23521499<br class="">
</div>
<div class="">-   RespHeader     Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">-   RespHeader     ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">-   RespHeader     X-Varnish: 32772<br class="">
</div>
<div class="">-   RespHeader     Age: 0<br class="">
</div>
<div class="">-   RespHeader     Via: 1.1 varnish (Varnish/6.0)<br class="">
</div>
<div class="">-   VCL_call       DELIVER<br class="">
</div>
<div class="">-   VCL_return     deliver<br class="">
</div>
<div class="">-   Timestamp      Process: 1576135769.306657 0.001978 0.000027<br class="">
</div>
<div class="">-   RespHeader     Accept-Ranges: bytes<br class="">
</div>
<div class="">-   RespHeader     Connection: keep-alive<br class="">
</div>
<div class="">-   Timestamp      Resp: 1576135769.306748 0.002069 0.000091<br class="">
</div>
<div class="">-   ReqAcct        112 0 112 299 0 299<br class="">
</div>
<div class="">-   End            <br class="">
</div>
<div class="">**  << BeReq    >> 32773     <br class="">
</div>
<div class="">--  Begin          bereq 32772 fetch<br class="">
</div>
<div class="">--  VCL_use        boot<br class="">
</div>
<div class="">--  Timestamp      Start: 1576135769.304834 0.000000 0.000000<br class="">
</div>
<div class="">--  BereqMethod    HEAD<br class="">
</div>
<div class="">--  BereqURL       /Naserfeiz.mp4<br class="">
</div>
<div class="">--  BereqProtocol  HTTP/1.1<br class="">
</div>
<div class="">--  BereqHeader    Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">--  BereqHeader    User-Agent: curl/7.47.0<br class="">
</div>
<div class="">--  BereqHeader    Accept: */*<br class="">
</div>
<div class="">--  BereqHeader    newtrack: yes<br class="">
</div>
<div class="">--  BereqHeader    X-Forwarded-For: 192.168.200.12<br class="">
</div>
<div class="">--  BereqMethod    GET<br class="">
</div>
<div class="">--  BereqHeader    Accept-Encoding: gzip<br class="">
</div>
<div class="">--  BereqHeader    X-Varnish: 32773<br class="">
</div>
<div class="">--  VCL_call       BACKEND_FETCH<br class="">
</div>
<div class="">--  VCL_return     fetch<br class="">
</div>
<div class="">--  BackendOpen    27 boot.swift_proxy_1 192.168.200.11 8080 192.168.200.12 6846<br class="">
</div>
<div class="">--  BackendStart   192.168.200.11 8080<br class="">
</div>
<div class="">--  Timestamp      Bereq: 1576135769.304993 0.000160 0.000160<br class="">
</div>
<div class="">--  Timestamp      Beresp: 1576135769.306170 0.001336 0.001176<br class="">
</div>
<div class="">--  BerespProtocol HTTP/1.1<br class="">
</div>
<div class="">--  BerespStatus   200<br class="">
</div>
<div class="">--  BerespReason   OK<br class="">
</div>
<div class="">--  BerespHeader   Server: nginx<br class="">
</div>
<div class="">--  BerespHeader   Date: Thu, 12 Dec 2019 07:29:58 GMT<br class="">
</div>
<div class="">--  BerespHeader   Content-Type: text/plain<br class="">
</div>
<div class="">--  BerespHeader   Content-Length: 23521499<br class="">
</div>
<div class="">--  BerespHeader   Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">--  BerespHeader   Connection: keep-alive<br class="">
</div>
<div class="">--  BerespHeader   ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">--  BerespHeader   Accept-Ranges: bytes<br class="">
</div>
<div class="">--  TTL            RFC 120 10 0 1576135769 1576135769 1576135798 0 0 cacheable<br class="">
</div>
<div class="">--  VCL_call       BACKEND_RESPONSE<br class="">
</div>
<div class="">--  TTL            VCL 86400 10 0 1576135769 cacheable<br class="">
</div>
<div class="">--  VCL_return     deliver<br class="">
</div>
<div class="">--  Storage        file s0<br class="">
</div>
<div class="">--  Fetch_Body     3 length stream<br class="">
</div>
<div class="">--  BackendReuse   27 boot.swift_proxy_1<br class="">
</div>
<div class="">--  Timestamp      BerespBody: 1576135769.645490 0.340657 0.339321<br class="">
</div>
<div class="">--  Length         23521499<br class="">
</div>
<div class="">--  BereqAcct      185 0 185 241 23521499 23521740<br class="">
</div>
<div class="">--  End            <br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">########<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">STEP TWO:<br class="">
</div>
<div class="">First i restart varnish file and varnishlog then:<br class="">
</div>
<div class="">I add another varnish (with ram backend) in fornt of the varnish file and then i ask the url again in varnish ram (because it is my frontend server and users can access media though this server):<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish-ram$ curl -I <a href="http://192.168.200.13/Naserfeiz.mp4" target="_blank" class="">
http://192.168.200.13/Naserfeiz.mp4</a> -H "newtrack: yes"<br class="">
</div>
<div class="">HTTP/1.1 200 OK<br class="">
</div>
<div class="">Server: nginx<br class="">
</div>
<div class="">Date: Thu, 12 Dec 2019 07:33:05 GMT<br class="">
</div>
<div class="">Content-Type: text/plain<br class="">
</div>
<div class="">Content-Length: 23521499<br class="">
</div>
<div class="">Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">X-Varnish: 2<br class="">
</div>
<div class="">Via: 1.1 varnish (Varnish/6.0)<br class="">
</div>
<div class="">X-Varnish: 2<br class="">
</div>
<div class="">Age: 0<br class="">
</div>
<div class="">Via: 1.1 varnish-v4<br class="">
</div>
<div class="">Accept-Ranges: bytes<br class="">
</div>
<div class="">Connection: keep-alive<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">First varnish file cached the url and then Varnish ram fetched the object from varnish file and cached it , then i purged that url in varnish ram and it purged successfuly and it exactly removed from cached:<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish-ram:~$ curl -v -k -X PURGE <a href="http://192.168.200.13/Naserfeiz.mp4" target="_blank" class="">
http://192.168.200.13/Naserfeiz.mp4</a> -o /dev/null -H "newtrack: yes"<br class="">
</div>
<div class="">*   Trying 192.168.200.13...<br class="">
</div>
<div class="">  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br class="">
</div>
<div class="">                                 Dload  Upload   Total   Spent    Left  Speed<br class="">
</div>
<div class="">  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 192.168.200.13 (192.168.200.13) port 80 (#0)<br class="">
</div>
<div class="">> PURGE /Naserfeiz.mp4 HTTP/1.1<br class="">
</div>
<div class="">> Host: 192.168.200.13<br class="">
</div>
<div class="">> User-Agent: curl/7.47.0<br class="">
</div>
<div class="">> Accept: */*<br class="">
</div>
<div class="">> newtrack: yes<br class="">
</div>
<div class="">> <br class="">
</div>
<div class="">< HTTP/1.1 200 Purged<br class="">
</div>
<div class="">< Date: Thu, 12 Dec 2019 07:33:46 GMT<br class="">
</div>
<div class="">< Server: Varnish<br class="">
</div>
<div class="">< X-Varnish: 32770<br class="">
</div>
<div class="">< Content-Type: text/html; charset=utf-8<br class="">
</div>
<div class="">< Retry-After: 5<br class="">
</div>
<div class="">< Content-Length: 240<br class="">
</div>
<div class="">< Accept-Ranges: bytes<br class="">
</div>
<div class="">< Connection: keep-alive<br class="">
</div>
<div class="">< <br class="">
</div>
<div class="">{ [240 bytes data]<br class="">
</div>
<div class="">100   240  100   240    0     0  73846      0 --:--:-- --:--:-- --:--:--  117k<br class="">
</div>
<div class="">* Connection #0 to host 192.168.200.13 left intact<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Then i purged the url in varnish file it shows "200 purged" but it still exist in varnish file!!!!!!:<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish-file$ curl -v -k -X PURGE <a href="http://192.168.200.12:8080/Naserfeiz.mp4" target="_blank" class="">
http://192.168.200.12:8080/Naserfeiz.mp4</a> -o /dev/null -H "newtrack: yes"<br class="">
</div>
<div class="">*   Trying 192.168.200.12...<br class="">
</div>
<div class="">  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br class="">
</div>
<div class="">                                 Dload  Upload   Total   Spent    Left  Speed<br class="">
</div>
<div class="">  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 192.168.200.12 (192.168.200.12) port 8080 (#0)<br class="">
</div>
<div class="">> PURGE /Naserfeiz.mp4 HTTP/1.1<br class="">
</div>
<div class="">> Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">> User-Agent: curl/7.47.0<br class="">
</div>
<div class="">> Accept: */*<br class="">
</div>
<div class="">> newtrack: yes<br class="">
</div>
<div class="">> <br class="">
</div>
<div class="">< HTTP/1.1 200 Purged<br class="">
</div>
<div class="">< Date: Thu, 12 Dec 2019 07:33:39 GMT<br class="">
</div>
<div class="">< Server: Varnish<br class="">
</div>
<div class="">< X-Varnish: 5<br class="">
</div>
<div class="">< Content-Type: text/html; charset=utf-8<br class="">
</div>
<div class="">< Retry-After: 5<br class="">
</div>
<div class="">< Content-Length: 236<br class="">
</div>
<div class="">< Accept-Ranges: bytes<br class="">
</div>
<div class="">< Connection: keep-alive<br class="">
</div>
<div class="">< <br class="">
</div>
<div class="">{ [236 bytes data]<br class="">
</div>
<div class="">100   236  100   236    0     0   110k      0 --:--:-- --:--:-- --:--:--  230k<br class="">
</div>
<div class="">* Connection #0 to host 192.168.200.12 left intact<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">This is varnishlog resault in varnish file:<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">varnish-file:~$ sudo varnishlog -d  -g request<br class="">
</div>
<div class="">*   << Request  >> 2         <br class="">
</div>
<div class="">-   Begin          req 1 rxreq<br class="">
</div>
<div class="">-   Timestamp      Start: 1576135956.460768 0.000000 0.000000<br class="">
</div>
<div class="">-   Timestamp      Req: 1576135956.460768 0.000000 0.000000<br class="">
</div>
<div class="">-   ReqStart       192.168.200.13 22300 a0<br class="">
</div>
<div class="">-   ReqMethod      GET<br class="">
</div>
<div class="">-   ReqURL         /Naserfeiz.mp4<br class="">
</div>
<div class="">-   ReqProtocol    HTTP/1.1<br class="">
</div>
<div class="">-   ReqHeader      Host: 192.168.200.13<br class="">
</div>
<div class="">-   ReqHeader      User-Agent: curl/7.47.0<br class="">
</div>
<div class="">-   ReqHeader      Accept: */*<br class="">
</div>
<div class="">-   ReqHeader      newtrack: yes<br class="">
</div>
<div class="">-   ReqHeader      X-Forwarded-For: 192.168.200.13<br class="">
</div>
<div class="">-   ReqHeader      Accept-Encoding: gzip<br class="">
</div>
<div class="">-   ReqHeader      X-Varnish: 3<br class="">
</div>
<div class="">-   ReqUnset       X-Forwarded-For: 192.168.200.13<br class="">
</div>
<div class="">-   ReqHeader      X-Forwarded-For: 192.168.200.13, 192.168.200.13<br class="">
</div>
<div class="">-   VCL_call       RECV<br class="">
</div>
<div class="">-   VCL_return     hash<br class="">
</div>
<div class="">-   VCL_call       HASH<br class="">
</div>
<div class="">-   VCL_return     lookup<br class="">
</div>
<div class="">-   VCL_call       MISS<br class="">
</div>
<div class="">-   VCL_return     fetch<br class="">
</div>
<div class="">-   Link           bereq 3 fetch<br class="">
</div>
<div class="">-   Timestamp      Fetch: 1576135956.463065 0.002297 0.002297<br class="">
</div>
<div class="">-   RespProtocol   HTTP/1.1<br class="">
</div>
<div class="">-   RespStatus     200<br class="">
</div>
<div class="">-   RespReason     OK<br class="">
</div>
<div class="">-   RespHeader     Server: nginx<br class="">
</div>
<div class="">-   RespHeader     Date: Thu, 12 Dec 2019 07:33:05 GMT<br class="">
</div>
<div class="">-   RespHeader     Content-Type: text/plain<br class="">
</div>
<div class="">-   RespHeader     Content-Length: 23521499<br class="">
</div>
<div class="">-   RespHeader     Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">-   RespHeader     ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">-   RespHeader     X-Varnish: 2<br class="">
</div>
<div class="">-   RespHeader     Age: 0<br class="">
</div>
<div class="">-   RespHeader     Via: 1.1 varnish (Varnish/6.0)<br class="">
</div>
<div class="">-   VCL_call       DELIVER<br class="">
</div>
<div class="">-   VCL_return     deliver<br class="">
</div>
<div class="">-   Timestamp      Process: 1576135956.463114 0.002346 0.000049<br class="">
</div>
<div class="">-   RespHeader     Accept-Ranges: bytes<br class="">
</div>
<div class="">-   RespHeader     Connection: keep-alive<br class="">
</div>
<div class="">-   Timestamp      Resp: 1576135956.758920 0.298152 0.295806<br class="">
</div>
<div class="">-   ReqAcct        176 0 176 295 23521499 23521794<br class="">
</div>
<div class="">-   End            <br class="">
</div>
<div class="">**  << BeReq    >> 3         <br class="">
</div>
<div class="">--  Begin          bereq 2 fetch<br class="">
</div>
<div class="">--  VCL_use        boot<br class="">
</div>
<div class="">--  Timestamp      Start: 1576135956.461099 0.000000 0.000000<br class="">
</div>
<div class="">--  BereqMethod    GET<br class="">
</div>
<div class="">--  BereqURL       /Naserfeiz.mp4<br class="">
</div>
<div class="">--  BereqProtocol  HTTP/1.1<br class="">
</div>
<div class="">--  BereqHeader    Host: 192.168.200.13<br class="">
</div>
<div class="">--  BereqHeader    User-Agent: curl/7.47.0<br class="">
</div>
<div class="">--  BereqHeader    Accept: */*<br class="">
</div>
<div class="">--  BereqHeader    newtrack: yes<br class="">
</div>
<div class="">--  BereqHeader    Accept-Encoding: gzip<br class="">
</div>
<div class="">--  BereqHeader    X-Varnish: 3<br class="">
</div>
<div class="">--  BereqHeader    X-Forwarded-For: 192.168.200.13, 192.168.200.13<br class="">
</div>
<div class="">--  BereqHeader    X-Varnish: 3<br class="">
</div>
<div class="">--  VCL_call       BACKEND_FETCH<br class="">
</div>
<div class="">--  VCL_return     fetch<br class="">
</div>
<div class="">--  BackendOpen    27 boot.swift_proxy_1 192.168.200.11 8080 192.168.200.12 6860<br class="">
</div>
<div class="">--  BackendStart   192.168.200.11 8080<br class="">
</div>
<div class="">--  Timestamp      Bereq: 1576135956.461955 0.000856 0.000856<br class="">
</div>
<div class="">--  Timestamp      Beresp: 1576135956.462607 0.001508 0.000652<br class="">
</div>
<div class="">--  BerespProtocol HTTP/1.1<br class="">
</div>
<div class="">--  BerespStatus   200<br class="">
</div>
<div class="">--  BerespReason   OK<br class="">
</div>
<div class="">--  BerespHeader   Server: nginx<br class="">
</div>
<div class="">--  BerespHeader   Date: Thu, 12 Dec 2019 07:33:05 GMT<br class="">
</div>
<div class="">--  BerespHeader   Content-Type: text/plain<br class="">
</div>
<div class="">--  BerespHeader   Content-Length: 23521499<br class="">
</div>
<div class="">--  BerespHeader   Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT<br class="">
</div>
<div class="">--  BerespHeader   Connection: keep-alive<br class="">
</div>
<div class="">--  BerespHeader   ETag: "3a1794b0-166e8db"<br class="">
</div>
<div class="">--  BerespHeader   Accept-Ranges: bytes<br class="">
</div>
<div class="">--  TTL            RFC 120 10 0 1576135956 1576135956 1576135985 0 0 cacheable<br class="">
</div>
<div class="">--  VCL_call       BACKEND_RESPONSE<br class="">
</div>
<div class="">--  TTL            VCL 86400 10 0 1576135956 cacheable<br class="">
</div>
<div class="">--  VCL_return     deliver<br class="">
</div>
<div class="">--  Storage        file s0<br class="">
</div>
<div class="">--  Fetch_Body     3 length stream<br class="">
</div>
<div class="">--  BackendReuse   27 boot.swift_proxy_1<br class="">
</div>
<div class="">--  Timestamp      BerespBody: 1576135956.758956 0.297858 0.296349<br class="">
</div>
<div class="">--  Length         23521499<br class="">
</div>
<div class="">--  BereqAcct      206 0 206 241 23521499 23521740<br class="">
</div>
<div class="">--  End            <br class="">
</div>
<div class=""><br class="">
</div>
<div class="">*   << Request  >> 5         <br class="">
</div>
<div class="">-   Begin          req 4 rxreq<br class="">
</div>
<div class="">-   Timestamp      Start: 1576136019.230666 0.000000 0.000000<br class="">
</div>
<div class="">-   Timestamp      Req: 1576136019.230666 0.000000 0.000000<br class="">
</div>
<div class="">-   ReqStart       192.168.200.12 5452 a0<br class="">
</div>
<div class="">-   ReqMethod      PURGE<br class="">
</div>
<div class="">-   ReqURL         /Naserfeiz.mp4<br class="">
</div>
<div class="">-   ReqProtocol    HTTP/1.1<br class="">
</div>
<div class="">-   ReqHeader      Host: <a href="http://192.168.200.12:8080/" target="_blank" class="">
192.168.200.12:8080</a><br class="">
</div>
<div class="">-   ReqHeader      User-Agent: curl/7.47.0<br class="">
</div>
<div class="">-   ReqHeader      Accept: */*<br class="">
</div>
<div class="">-   ReqHeader      newtrack: yes<br class="">
</div>
<div class="">-   ReqHeader      X-Forwarded-For: 192.168.200.12<br class="">
</div>
<div class="">-   VCL_call       RECV<br class="">
</div>
<div class="">-   VCL_return     purge<br class="">
</div>
<div class="">-   VCL_call       HASH<br class="">
</div>
<div class="">-   VCL_return     lookup<br class="">
</div>
<div class="">-   VCL_call       PURGE<br class="">
</div>
<div class="">-   VCL_return     synth<br class="">
</div>
<div class="">-   Timestamp      Process: 1576136019.230863 0.000198 0.000198<br class="">
</div>
<div class="">-   RespHeader     Date: Thu, 12 Dec 2019 07:33:39 GMT<br class="">
</div>
<div class="">-   RespHeader     Server: Varnish<br class="">
</div>
<div class="">-   RespHeader     X-Varnish: 5<br class="">
</div>
<div class="">-   RespProtocol   HTTP/1.1<br class="">
</div>
<div class="">-   RespStatus     200<br class="">
</div>
<div class="">-   RespReason     OK<br class="">
</div>
<div class="">-   RespReason     Purged<br class="">
</div>
<div class="">-   VCL_call       SYNTH<br class="">
</div>
<div class="">-   RespHeader     Content-Type: text/html; charset=utf-8<br class="">
</div>
<div class="">-   RespHeader     Retry-After: 5<br class="">
</div>
<div class="">-   VCL_return     deliver<br class="">
</div>
<div class="">-   RespHeader     Content-Length: 236<br class="">
</div>
<div class="">-   Storage        malloc Transient<br class="">
</div>
<div class="">-   RespHeader     Accept-Ranges: bytes<br class="">
</div>
<div class="">-   RespHeader     Connection: keep-alive<br class="">
</div>
<div class="">-   Timestamp      Resp: 1576136019.231138 0.000473 0.000275<br class="">
</div>
<div class="">-   ReqAcct        113 0 113 214 236 450<br class="">
</div>
<div class="">-   End            <br class="">
</div>
<div class=""><br class="">
</div>
<div class="">########<br class="">
</div>
<div class="">PLEASE test this scenario for yourself and you can see that i do correct and the object wont remove from varnish-file<br class="">
</div>
<div class="">Please do this scenario for yourself<br class="">
</div>
<span class=""></span><br class="">
<div id="x_x_x_m_1231143223751743120m_-3046864990878589310x_appendonsend" class="">
</div>
<hr class="" style="display:inline-block; width:98%">
<div id="x_x_x_m_1231143223751743120m_-3046864990878589310x_divRplyFwdMsg" dir="ltr" class="">
<font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b> Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" target="_blank" class="">guillaume@varnish-software.com</a>><br class="">
<b class="">Sent:</b> Wednesday, December 11, 2019 9:44 AM<br class="">
<b class="">To:</b> hamidreza hosseini <<a href="mailto:hrhosseini@hotmail.com" target="_blank" class="">hrhosseini@hotmail.com</a>><br class="">
<b class="">Cc:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank" class="">
varnish-misc@varnish-cache.org</a> <<a href="mailto:varnish-misc@varnish-cache.org" target="_blank" class="">varnish-misc@varnish-cache.org</a>><br class="">
<b class="">Subject:</b> Re: Varnish doesnt purge</font>
<div class=""> </div>
</div>
<div class="">
<div dir="ltr" class="">Yes it does, we have already proved it./
<div class=""><br class="">
</div>
<div class="">Each instance purges and will refetch the object for its respective backend. I explained how to test: start with the origin, change the data and check that you actually get the new object. Then add a varnish layer, purge, check, repeat.</div>
<div class=""><br class="">
</div>
<div class="">You are testing everything at once and are unable to isolate the issue because you refuse to take things step by step, and spamming won't change that.</div>
<div class=""><br class="">
</div>
<div class="">I'm sorry but until you have tested each layer individually and identified the one that fails, I won't be able to help.</div>
<div class=""><br clear="all" class="">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">-- <br class="">
</div>
Guillaume Quintard<br class="">
</div>
</div>
</div>
<br class="">
</div>
</div>
<br class="">
<div class="">
<div dir="ltr" class="">On Wed, Dec 11, 2019 at 3:08 PM hamidreza hosseini <<a href="mailto:hrhosseini@hotmail.com" target="_blank" class="">hrhosseini@hotmail.com</a>> wrote:<br class="">
</div>
<blockquote class="" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr" class="">
<div class="" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<div class="" style="font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
Hi,</div>
<div class="" style="font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
please help me to solve this problem, this is the link that i explaine my question completely:</div>
<div class="" style="font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<a href="https://varnish-cache.org/lists/pipermail/varnish-misc/2019-December/026754.html" rel="noopener noreferrer" target="_blank" class="">https://varnish-cache.org/lists/pipermail/varnish-misc/2019-December/026754.html</a></div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
varnish-misc mailing list<br class="">
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank" class="">varnish-misc@varnish-cache.org</a><br class="">
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank" class="">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br class="">
</blockquote>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
varnish-misc mailing list<br class="">
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank" class="">varnish-misc@varnish-cache.org</a><br class="">
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank" class="">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br class="">
</blockquote>
</div>
</div>
</div>
-- <br class="">
<div dir="ltr" class="x_x_x_gmail_signature">Sent from my iPhone</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>