Researchers at UNSW have developed a fire-resistant spray designed to make cotton-based fabrics more resilient to flames.