auto-detect and generate asset headers