ramucirumab and trifluridine/tipiracil or paclitaxel for the treatment of patients with previously treated advanced gastric or gastroesophageal junction cancer

Conditions: Clinical Stage III Gastric Cancer AJCC v8; Clinical Stage III Gastroesophageal Junction Adenocarcinoma AJCC v8; Clinical Stage IV Gastric Cancer AJCC v8; Clinical Stage IV Gastroesophageal Junction Adenocarcinoma AJCC v8; Clinical Stage IVA Gastric Cancer AJCC v8; Clinical Stage IVA Gastroesophageal Junction Adenocarcinoma AJCC v8; Clinical Stage IVB Gastric Cancer AJCC v8; Clinical Stage IVB Gastroesophageal Junction Adenocarcinoma AJCC v8; Locally Advanced Unresectable Gastric Adenocarcinoma; Locally Advanced Unresectable Gastroesophageal Junction Adenocarcinoma; Metastatic Gastric Adenocarcinoma; Metastatic Gastroesophageal Junction Adenocarcinoma; Pathologic Stage III Gastric Cancer AJCC v8; Pathologic Stage III Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IIIA Gastric Cancer AJCC v8; Pathologic Stage IIIA Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IIIB Gastric Cancer AJCC v8; Pathologic Stage IIIB Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IIIC Gastric Cancer AJCC v8; Pathologic Stage IV Gastric Cancer AJCC v8; Pathologic Stage IV Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IVA Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IVB Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage III Gastric Cancer AJCC v8; Postneoadjuvant Therapy Stage III Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIA Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIB Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IV Gastric Cancer AJCC v8; Postneoadjuvant Therapy Stage IV Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IVA Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IVB Gastroesophageal Junction Adenocarcinoma AJCC v8

Summary: this phase ii trial studies the effect of the combination of ramucirumab and trifluridine/tipiracil or paclitaxel in treating patients with previously treated gastric or gastroesophageal junction cancer that has spread to other places in the body (advanced). ramucirumab may damage tumor cells by targeting new blood vessel formation. trifluridine/tipiracil is a chemotherapy pill and that may damage tumor cells by damaging their deoxyribonucleic acid (dna). paclitaxel may block cell growth by stopping cell division which may kill tumor cells. giving ramucirumab and trifluridine/tipiracil will not be worse than ramucirumab and paclitaxel in treating gastric or gastroesophageal junction cancer.

primary objective: i. to compare, in a non-inferiority fashion, the progression-free survival (pfs) in patients with metastatic refractory gastric/gastroesophageal junction (gej) adenocarcinoma receiving the combination of ramucirumab with trifluridine and tipiracil hydrochloride (tas-102) versus (vs.) paclitaxel and ramucirumab. secondary objectives: i. to assess overall survival (os) in this patient population for each regimen. ii. assess changes in patient quality of life (qol) as measured by the linear analogue self-assessment (lasa) questionnaire for each regimen. iii. to determine the safety of the combination of ramucirumab with tas-102 in this patient population. outline: patients are randomized to 1 of 2 arms. arm a: patients receive tas-102 orally (po) twice daily (bid) on days 1-5 and 8-12, and ramucirumab intravenously (iv) over 30-60 minutes on days 1 and 15. treatment repeats every 28 days for up to 36 cycles in the absence of disease progression or unacceptable toxicity. arm b: patients receive paclitaxel iv over 1-96 hours on days 1, 8, and 15, and ramucirumab iv over 30-60 minutes on days 1 and 15. treatment repeats every 28 days for up to 36 cycles in the absence of disease progression or unacceptable toxicity. after completion of study treatment, patients are followed up at 30-35 days, then every 3 months for up to 3 years.

Eligibility criteria:
inclusion criteria: * age \>= 18 years * histological or cytological confirmation of adenocarcinoma of the stomach or gastroesophageal junction * have locally advanced unresectable or metastatic disease that has progressed =\< 180 days since last treatment * one or more measurable or nonmeasurable evaluable lesions per response evaluation criteria in solid tumors (recist) * planned for second line treatment defined by failing or were intolerant to previous standard chemotherapies containing one or more of the following agents: * fluoropyrimidine (iv 5-fu or capecitabine) and platinum (cisplatin or oxaliplatin) * trastuzumab in case of her2-positive disease * note: for the patients whose disease recurred =\< 168 days from the last dose of adjuvant anticancer chemotherapy, that adjuvant anticancer chemotherapy is counted as 1 prior chemotherapy line * eastern cooperative oncology group (ecog) performance status (ps) 0 or 1 * ability to swallow oral medications * absolute neutrophil count (anc) \>= 1500/mm\^3 (obtained =\< 7 days prior to registration) * platelet count \>= 100,000/mm\^3 (obtained =\< 7 days prior to registration) * hemoglobin \>= 9.0 g/dl (obtained =\< 7 days prior to registration) * total bilirubin =\< 1.5 x upper limit of normal (uln) (obtained =\< 7 days prior to registration) * aspartate transaminase (ast) and alanine transaminase (alt) =\< 3 x uln ( =\< 5.0 x unl, if with liver metastasis) (obtained =\< 7 days prior to registration) * international normalized ratio (inr) =\< 1.5 x uln, and a partial thromboplastin time (ptt) =\< 5 seconds above the uln (unless receiving anticoagulation therapy) (obtained =\< 7 days prior to registration) * note: patients receiving warfarin must be switched to low molecular weight heparin and have achieved stable coagulation profile prior to first dose of protocol therapy * note: patients on full-dose anticoagulation must be on a stable dose (minimum duration 14 days) of oral anticoagulant or low molecular weight heparin (lmwh) * exception: if receiving warfarin, the patient must have an inr =\< 3.0. for heparin and lmwh there should be no active bleeding (that is, no bleeding within 14 days prior to first dose of protocol therapy) or pathological condition present that carries a high risk of bleeding (for example, tumor involving major vessels or known varices) * urinary protein is =\ = 2+, a 24-hour urine collection for protein must demonstrate =\< 1000 mg of protein in 24 hours to allow participation in this protocol) (obtained =\< 7 days prior to registration) * creatinine =\ = 50 ml/minute (that is, if serum creatinine is \>= 1.5 times the uln, a 24-hour urine collection to calculate creatinine clearance must be performed) (obtained =\< 7 days prior to registration) * negative pregnancy test done =\< 7 days prior to registration, for women of childbearing potential only * ability to complete questionnaire(s) by themselves or with assistance * provide informed written consent =\< 28 days prior to registration * willing to return to enrolling institution for follow-up (during the active monitoring phase of the study) * because the teratogenicity of ramucirumab is not known, the patient, if sexually active, must be postmenopausal, surgically sterile, or using effective contraception (hormonal or barrier methods) exclusion criteria: * any of the following because this study involves an investigational agent whose genotoxic, mutagenic and teratogenic effects on the developing fetus and newborn are unknown: * pregnant women * nursing women * women of childbearing potential who are unwilling to employ adequate contraception * co-morbid systemic illnesses or other severe concurrent disease which, in the judgment of the investigator, would make the patient inappropriate for entry into this study or interfere significantly with the proper assessment of safety and toxicity of the prescribed regimens * previous treatment with tas-102 or ramucirumab * previous taxane therapy =\< 180 days prior to registration * any grade 3-4 gastrointestinal (gi) bleeding =\< 90 days prior to registration * history of deep vein thrombosis (dvt), pulmonary embolism (pe), or any other significant thromboembolism (venous port or catheter thrombosis or superficial venous thrombosis are not considered "significant") =\< 90 days prior to registration * any arterial thromboembolic events, including but not limited to myocardial infarction, transient ischemic attack, cerebrovascular accident, or unstable angina, =\< 180 days prior to registration * prior history of gi perforation/fistula =\< 180 days of registration or risk factors for perforation * serious or nonhealing wound, ulcer, or bone fracture =\< 28 days prior to registration * major surgery =\< 28 days prior to first dose of protocol therapy, or minor surgery/subcutaneous venous access device placement =\< 7 days prior to registration * elective or planned major surgery to be performed during the course of the clinical trial * cirrhosis at a level of child-pugh b (or worse) or cirrhosis (any degree) and a history of hepatic encephalopathy or clinically meaningful ascites resulting from cirrhosis. note: clinically meaningful ascites is defined as ascites from cirrhosis requiring diuretics or paracentesis * uncontrolled or poorly-controlled hypertension (\>= 150 mmhg systolic or \>= 90 mmhg diastolic for \>= 4 weeks) despite standard medical management * immunocompromised and known to be human immunodeficiency virus (hiv) positive and currently receiving antiretroviral therapy * note: patients known to be hiv positive, but without clinical evidence of an immunocompromised state, are eligible for this trial * uncontrolled intercurrent illness including, but not limited to, ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, or psychiatric illness/social situations that would limit compliance with study requirements * receiving any other investigational agent which would be considered as a treatment for the primary neoplasm * other active malignancy =\< 3 years prior to registration. exceptions: non-melanotic skin cancer or carcinoma-in-situ of the cervix. note: if there is a history of prior malignancy, they must not be receiving other specific treatment for their cancer * receiving chronic antiplatelet therapy, including dipyridamole or clopidogrel, or similar agents. note: once-daily aspirin use (maximum dose 325 mg/day) is permitted