purge files from cache

Alex F alex at acasa.ro
Tue Jul 6 09:16:42 CEST 2010


Hi,
I have been using almost the same command as yours:
purge req.http.host == example.com && req.url ~ ^/.*style.css
(no quotes needed :P)

Thank you & cheers.


On 6.7.2010 9:52, Tollef Fog Heen wrote:
> ]] Alex F
>
> | Prior to version 2.1.2 there used to be hash.purge to which I would
> | pass the file and the url to be purged.
> | Now I see that it has been removed.
> | How can I achieve the same functionality?
> | eg: hash.purge style.css example.com
>
> Try:
>
> purge req.url == "style.css"&&  req.http.host == "example.com"
>
> I think the quotes are needed, but you'll find out quickly enough
> yourself. :-)
>
> cheers,
>    



More information about the varnish-misc mailing list