I keep getting the message “Serve static assets with an efficient cache policy” on pagespeed tools.
I’m using Hexo static page generator, CloudFlare DNS and Netlify.
In the directory
/public I made the file “
netlify.toml” with this contents:
for = “/*” # This defines which paths this specific [[headers]] block will cover.
Cache-Control = “public, max-age=604800”
But that seems to have no effect on caching. How can I solve this?