Commit cfe0ea6a authored by Valeriy Panov's avatar Valeriy Panov
Browse files

robots.txt Cache-Control header

parent 91f8fb9a
Pipeline #1594 passed with stages
in 5 minutes and 5 seconds
const robots = (req, res) => {
const allow = process.env.ALLOW_ROBOTS === 'true' ? 'Allow: /': 'Disallow: /';
res.header('Cache-Control', 'public, max-age=600');
res.type('text/plain');
res.send('User-Agent: *\n' + allow);
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment