'Determines whether the given request is an asset request'

def is_asset_request(self, request):

    return (request.path.startswith((('/' + XASSET_LOCATION_TAG) + '/')) or request.path.startswith(('/' + AssetLocator.CANONICAL_NAMESPACE)) or StaticContent.is_versioned_asset_path(request.path))
