troubleshooting Varnish purges vs bans

Miguel Gonzalez miguel_3_gonzalez at yahoo.es
Wed Aug 9 17:50:25 CEST 2017


And what would be the right way to purge all the objects in the url? Or it can only be done with ban?

Regards,

Miguel

Dridi Boukelmoune <dridi at varni.sh> wrote:

>On Wed, Aug 9, 2017 at 1:00 PM, Miguel González
><miguel_3_gonzalez at yahoo.es> wrote:
>> On 08/09/17 11:54 AM, Dridi Boukelmoune wrote:
>>>> -   ReqMethod      PURGE
>>>> -   ReqURL         /.*
>>>
>>> Hello Miguel,
>>>
>>> A purge expects an exact match of an object hash, it doesn't work on
>>> criteria like bans do. In order for a purge to succeed, you usually
>>> need the exact Host header and URL in your purge request unless you
>>> changed the default hash.
>>
>> This is not supposed to purge all objects for the whole site?
>
>This would only purge "www.mydomain.com/.*" interpreted as a string,
>not a regular expression.
>
>Dridi
>
>_______________________________________________
>varnish-misc mailing list
>varnish-misc at varnish-cache.org
>https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


More information about the varnish-misc mailing list