We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91064eb commit a7a519dCopy full SHA for a7a519d
1 file changed
static/game_worker.js
@@ -95,7 +95,10 @@ self.addEventListener('activate', event => {
95
// Helper function to determine if a request should be cached
96
function isCacheableRequest(request) {
97
const url = new URL(request.url);
98
-
+ const params = new URLSearchParams(url.search);
99
+ if (params.has('cache') && params.get('cache') === 'false' || params.has('cacheBust') || params.has('cachebust') || params.has('bust')) {
100
+ return false; // Cache-busting query parameter
101
+ }
102
// Never cache txt files, change often
103
if (url.pathname.endsWith('.txt')) {
104
return false;
0 commit comments