How do I add expire headers?

Pingdom recommends to add expire headers for your website. I found something in a cms forum but it doesn’t work. I created a file called _headers.toml. you can check it out on GitHub.
the blog:

From MDN: If there is a Cache-Control header with the max-age or s-maxage directive in the response, the Expires header is ignored. ( You do seem to have Cache-Control. Probably that’s why it’s not working.

1 Like