Skip to content

Commit ce0efc2

Browse files
feat: add cache control headers to /api/topics
1 parent 9a3edfc commit ce0efc2

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ 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
1920

2021
// * Commented out for now because we just don't
2122
// * need this data here. WWP does not use the

0 commit comments

Comments
 (0)