add index and resource headers