Ensure headers are refreshed before each attempt