I am playing around with my Netlify headers/redirection/robots component. Right now I expire locally cached pages by hardcoding this years last day into the file for the Expires
header.
Expires: Tue, 31-Dec-2020 23:59:59 GMT+0700
Is it somehow possible in Golang to formulate something like {{ today + 1 year }}
?
I know that the cache control header perfectly does what I want to achieve, but there are too many clients, setups and use cases, that ignore that header and look for the Expires
header.
Cache-Control: public, max-age=31536000, immutable