How PURGE works
smwood4 at gmail.com
Thu Mar 14 19:37:05 CET 2013
As stated earlier you can use telnet/nc. There may be a better option for
what you're attempting. For example, have you tried changing the TTL of
your objects? It's possible to avoid purges altogether.
On Thu, Mar 14, 2013 at 11:27 AM, Souvik Bhattacharya <
souvikbhattacharyas at gmail.com> wrote:
> That means, whenever I need to request for "PURGE" I need to fire the
> Url by my self through container. Then it will be a extra round trip of
> client to server. Is there anyway to avoid that
> On Thu, Mar 14, 2013 at 10:14 PM, Paul A. Procacci <pprocacci at datapipe.com
> > wrote:
>> > a) As per the guide line when I will write 'purge' content management
>> > system send a special HTTP request to Varnish. So, is this request
>> > done automatically or my own program need to send a request with
>> > request.method ='PURGE'
>> Whether the request is done automatically or not depends on the CMS. I
>> the CMS has built in functionality to make the request. You'll need to
>> the documentation that came with the CMS to determine how it's handled.
>> Assume it's done for you though.
>> > b) In the below program to purge a object VCL check is the request is
>> > 'PURGE'. But if I am initiating purge for the first time then how the
>> > req.request will be 'PURGE'?
>> You can simulate a purge by sending the following bytes to varnish:
>> PURGE /url HTTP/1.0
>> You can send this via telnet, or a programming language of your choice,
>> ultimately this is how request.method gets set to 'PURGE'.
>> This message may contain confidential or privileged information. If you
>> are not the intended recipient, please advise us immediately and delete
>> this message. See http://www.datapipe.com/legal/email_disclaimer/ for
>> further information on confidentiality and the risks of non-secure
>> electronic communication. If you cannot access these links, please notify
>> us by reply message and we will send the contents to you.
> Thanks & Regards,
> Souvik Bhattacharya
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc