Gasket for short end piece with threaded cap