Skip to content

Implement Cache Busting for Static Assets (JS/CSS) - #206

Merged
pentium10 merged 1 commit into
ptrofimov:masterfrom
pentium10:master
Apr 10, 2025
Merged

pentium10 merged 1 commit into
ptrofimov:masterfrom
pentium10:master

Conversation

@pentium10

@pentium10 pentium10 commented Apr 10, 2025 •

Copy link
Copy Markdown
Collaborator

Problem:

When upgrading beanstalk-console, browsers or intermediate caches (like CDNs) might continue serving outdated JavaScript (JS) and Cascading Style Sheets (CSS) files. This mismatch between the backend PHP code and the frontend assets can lead to a broken or malfunctioning user interface (UI).

Solution:

This change implements a standard cache-busting technique by appending the application's version number as a query parameter to all static asset URLs ( for CSS,