def METHOD_NAME(resource_matchobj):
    pre = resource_matchobj.group('pre')
    resource = resource_matchobj.group('resource')
    post = resource_matchobj.group('post')
    cacheid = 'cacheid=' + get_resource_revision(resource)
    return pre + cacheid + post