The cap contains a 2-way vacuum/pressure valve which allows air entry to replace the volume of fuel used so the tank doesn't build a vacuum (which can result in fuel starvation or partial collapse of the tank), and allows pressure relief at a certain pressure level to avoid distortion of the tank. Both sides of that valve need to be working.