Working on the server side code to do a head request on shared urls