Add headers to index only if valid page request received