Skip to content

Commit 6415f43

Browse files
fix: move cache control header to successful request
1 parent ce0efc2 commit 6415f43

File tree

1 file changed

+1
-1
lines changed
  • apps/miiverse-api/src/services/api/routes

1 file changed

+1
-1
lines changed

apps/miiverse-api/src/services/api/routes/topics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const WARA_WARA_PLAZA_CACHE = new Cache<WWPResult>(ONE_HOUR);
1616
/* GET post titles. */
1717
router.get('/', async function (request: express.Request, response: express.Response): Promise<void> {
1818
response.type('application/xml');
19-
response.set('Cache-Control', 'public, max-age=3600'); // * 1 hour
2019

2120
// * Commented out for now because we just don't
2221
// * need this data here. WWP does not use the
@@ -68,6 +67,7 @@ router.get('/', async function (request: express.Request, response: express.Resp
6867
allowEmpty: true
6968
});
7069

70+
response.set('Cache-Control', 'public, max-age=3600'); // * 1 hour
7171
response.send(xml);
7272
});
7373

0 commit comments

Comments
 (0)