Skip to content

Commit

Permalink
fix: restore query bust check
Browse files Browse the repository at this point in the history
  • Loading branch information
admon84 committed Aug 11, 2024
1 parent 72ec2b5 commit 0b4c556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clientApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ koa.use(async (context, next) => {
context.set('Content-Type', mimeTypes[extension] ?? 'text/html');

// Set cache for resources that change occasionally
context.set('Cache-Control', 'public, max-age=604800, immutable'); // Cache for 1 week
if (context.request.query.bust) {
context.set('Cache-Control', 'public, max-age=604800, immutable'); // Cache for 1 week
}
});

// Proxy API requests to Screeps server
Expand Down

0 comments on commit 0b4c556

Please sign in to comment.