View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026148 | mantisbt | ui | public | 2019-09-16 17:03 | 2023-10-31 16:32 |
Reporter | syncguru | Assigned To | vboctor | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.23.0 | ||||
Target Version | 2.26.0 | Fixed in Version | 2.26.0 | ||
Summary | 0026148: Add hash to MantisBT CSS files to force browser cache update | ||||
Description | Recent PR made some UI changes but the generated CSS files have the same names as the old ones so the browser rightly ignored downloading the new ones. See attached image for an example of bad CSS that would be fixed by browser cache refresh. We need to update the build process to append the file content hash to the name of the CSS file to address this issue. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
A simple solution should be to add a query parameter to the css link: core/html_api.php |
|
Reopened as the PR is currently not merged to master or master-2.25 |
|
MantisBT: master 43c5381d 2021-10-28 08:51 Committer: dregad Details Diff |
Include cache key when including unversioned css When including our css files that don't have a version in the name, include cache key based on Mantis version. Refactored `html_css_link()` to have cache param. Fixes 0026148, PR https://github.com/mantisbt/mantisbt/pull/1773 |
Affected Issues 0026148 |
|
mod - core/html_api.php | Diff File | ||
mod - core/layout_api.php | Diff File |