I open the thread again, sorry.
Actually what I said about adding mime type on context to apply the rule only on php files it's not true.
It seems all requests, including assets, are handled by php. Check:
curl -I https://domainA.cat/ticketing/img/beta-1.png
HTTP/2 200
x-powered-by...