[Feature Request]: Add version query strings to CSS/JS file links for better CDN cache invalidation
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.
Hi:) I’d like to take this issue. Can you assign this issue to me? please
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)