Longitudinal response functions of heavier nuclei