Lighttpd expire.url mixed entries

Lately I had to set expiration settings for some webcontent in whole virtual host in Lighttpd. So i set:

And tested if it’s working fine:

So it looks fine (expiration is 3 months in future). Now I wanted to change expiration setting for a particular subdirectory dirtest:


And I found it’s not working:

So WTF? It appears that it makes a difference in what order You’ve put the entries in the conf. This one is working fine:


So just remember about proper ordering of items in expire.url entry :)

(tested on lighttpd-1.4.30)