Skip to content

Commit 6789666

Browse files
committed
cache anythgin with game-, not just /games/game-
1 parent dcfceaa commit 6789666

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

static/game_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ self.addEventListener('fetch', event => {
237237
// Choose caching strategy based on request type
238238
if (isCacheableRequest(request)) {
239239
// For most game assets, use time-aware cache-first
240-
if (request.url.includes('/games/game-')) {
240+
if (request.url.includes('game-')) {
241241
event.respondWith(timeAwareCacheFirstStrategy(request));
242242
}
243243
// For HTML and JSON files, use network-first to get latest versions

0 commit comments

Comments
 (0)