Details
-
Type: Task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.4.0-b1
-
Component/s: None
-
Labels:None
Description
The Blesta admin and client JavaScript files denote the version in the filename (e.g. "blesta-4.3.0.min.js"). Besides being a pain to update and link with each version, it's unnecessary to for preventing cache re-use, and creates additional script files (one for each version) in people's installations whenever they upgrade.
- Rename the blesta JS files to "app.min.js"
- Wherever the file is linked to (in the <head>), include a GET argument, e.g. "?v=abc123" where the value is the hashed Blesta version using the integrated HMAC hashing function
- This will allow us to continue to use a single file, and prevent cache re-use when people update their system. Plus, it's automatic and we don't have to change file names or re-link these files ever again!