[PR #25] [MERGED] fix: add cache-busting param to sprite URLs #4402

Closed
opened 2026-10-22 04:07:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/25
Author: @JorgeLTE
Created: 3/25/2026
Status: ✅ Merged
Merged: 3/25/2026
Merged by: @SpicyMarinara

Base: main ← Head: fix/sprite-cache-busting


📝 Commits (1)

  • b77a330 fix: add cache-busting param to sprite URLs

📊 Changes

1 file changed (+5 additions, -3 deletions)

View changed files

📝 packages/server/src/routes/sprites.routes.ts (+5 -3)

📄 Description

Discord Issue: https://discord.com/channels/1417099416812392641/1486413119461789696

Sprite URLs now include a ?v= query parameter based on the file's modification time. This prevents the browser from serving stale cached images when a sprite is deleted and re-uploaded with the same name.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/25 **Author:** [@JorgeLTE](https://github.com/JorgeLTE) **Created:** 3/25/2026 **Status:** ✅ Merged **Merged:** 3/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/sprite-cache-busting` --- ### 📝 Commits (1) - [`b77a330`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b77a3304bebef7dcd0a6dc55903f1c09e0caefc2) fix: add cache-busting param to sprite URLs ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/sprites.routes.ts` (+5 -3) </details> ### 📄 Description Discord Issue: https://discord.com/channels/1417099416812392641/1486413119461789696 Sprite URLs now include a `?v=` query parameter based on the file's modification time. This prevents the browser from serving stale cached images when a sprite is deleted and re-uploaded with the same name. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:18 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4402
No description provided.