Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Feature Request]: Add version query strings to CSS/JS file links for better CDN cache invalidation

Open Marukon opened this issue 4 months ago • 1 comments

Feature Description

Currently, the CSS and JS files in Stirling-PDF are linked without version-specific query strings (e.g., style.css instead of style.css?v=1.0.0). This can cause issues when a new version of Stirling-PDF is released, as CDN or browser caches may continue serving outdated static assets.

Why is this feature valuable?

Without version identifiers, users may experience broken layouts or outdated scripts after upgrading.

Adding query strings (or hash-based filenames) ensures that CDNs and browsers fetch the latest assets immediately after an update.

This improves reliability and reduces support issues related to cache inconsistencies.

Suggested Implementation

Append version numbers or commit hashes to CSS/JS file references in the HTML templates.

Alternatively, implement a build process that generates hashed filenames for static assets.

Additional Information

This is a common best practice in web applications to ensure smooth updates and consistent user experience.

No Duplicate of the Feature

  • [x] I have verified that there are no existing features requests similar to my request.

Marukon avatar Oct 24 '25 02:10 Marukon

Hi:) I’d like to take this issue. Can you assign this issue to me? please

AmandaBalderas20 avatar Nov 14 '25 23:11 AmandaBalderas20

Hi @AmandaBalderas20,

The front-end is getting completely reworked in the V2 version of the app, which is due to be released next week. Could you please research whether this is relevant for V2, and if so, make the PR to that branch?

https://github.com/Stirling-Tools/Stirling-PDF/tree/V2 (just make sure to switch the branch from main to V2)

balazs-szucs avatar Nov 15 '25 08:11 balazs-szucs