BackgroundFew longitudinal studies examine inflammation and lung function in asthma. We sought to determine the cytokines that reduce airflow, and the influence of respiratory viral infections on these relationships.MethodsChildren underwent home collections of nasal lavage during scheduled surveillance periods and self-reported respiratory illnesses. We studied 53 children for one year, analyzing 392 surveillance samples and 203 samples from 85 respiratory illnesses. Generalized estimated equations were used to evaluate associations between nasal lavage biomarkers (7 mRNAs, 10 proteins), lung function and viral infection.ResultsAs anticipated, viral infection was associated with increased cytokines and reduced FVC and FEV1. However, we found frequent and strong interactions between biomarkers and virus on lung function. For example, in the absence of viral infection, CXCL10 mRNA, MDA5 mRNA, CXCL10, IL-4, IL-13, CCL4, CCL5, CCL20 and CCL24 were negatively associated with FVC. In contrast, during infection, the opposite relationship was frequently found, with IL-4, IL-13, CCL5, CCL20 and CCL24 levels associated with less severe reductions in both FVC and FEV1.ConclusionsIn asthmatic children, airflow obstruction is driven by specific pro-inflammatory cytokines. In the absence of viral infection, higher cytokine levels are associated with decreasing lung function. However, with infection, there is a reversal in this relationship, with cytokine abundance associated with reduced lung function decline. While nasal samples may not reflect lower airway responses, these data suggest that some aspects of the inflammatory response may be protective against viral infection. This study may have ramifications for the treatment of viral-induced asthma exacerbations.Electronic supplementary materialThe online version of this article (10.1186/s12931-018-0922-9) contains supplementary material, which is available to authorized users.