# Setting response headers only on documents

**URL:** <https://answers.netlify.com/t/setting-response-headers-only-on-documents/6144>\
**Category:** Support\
**Tags:** headers\
**Created:** [December 12, 2019, 2:09pm UTC](https://answers.netlify.com/t/setting-response-headers-only-on-documents/6144 "2019-12-12T14:09:42Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![SimonHearne](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/simonhearne/32/4811_2.png) [@SimonHearne](https://answers.netlify.com/u/SimonHearne)\
**Post date:** [January 2, 2020, 12:48pm UTC](https://answers.netlify.com/t/setting-response-headers-only-on-documents/6144/12 "2020-01-02T12:48:21Z")

</div>

> [@Dennis](#):
>
> where the path includes the file name and extension

Yes, but my pages (like many folks’) are not served with a ‘.html’ extension, try [https://5e00e2e86a200d0007b165cf--simonhearne.netlify.com/](https://5e00e2e86a200d0007b165cf--simonhearne.netlify.com/) instead of [https://5e00e2e86a200d0007b165cf--simonhearne.netlify.com/index.html](https://5e00e2e86a200d0007b165cf--simonhearne.netlify.com/index.html)

So what I think you are saying is that it is impossible to set different headers for documents served at directory roots.

---

_[View the full topic](https://answers.netlify.com/t/setting-response-headers-only-on-documents/6144)._
