Skip to content

Commit d25239f

Browse files
committed
Enable caching for robots.txt
1 parent 371ebb3 commit d25239f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ app.get([
245245
'*/manifest.webmanifest',
246246
'*/images/*',
247247
// Our sw.js is just a stub; if we actually used it then we would want to not list it here
248-
'*/sw.js'
248+
'*/sw.js',
249+
'*/robots.txt'
249250
], (req, res, next) => {
250251
res.header('Cache-Control', 'public, max-age=604800, immutable');
251252
next();

0 commit comments

Comments
 (0)