Ticket #2904 (closed defect: fixed)
djConfig.cacheBust has no effect on non-dojo widget HTML templates or CSS files
| Reported by: | guest | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | General | Version: | 0.4.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I've configured djConfig.cacheBust on 0.4.2 and noticed that while it works as advertised for JavaScript? modules both witin dojo.widget and somethingElse.widget, it will not append the cacheBust parameter to somethingElse's HTML template or CSS files. This is for a package somethingElse laid out as a peer to the toplevel dojo, but not built using the build scripts.
Not appending the parameter will cause the browser to always use recent JavaScript? widget definitions but stale templates and stale styling.
I do not know enough about the dojo build system to know if dojo.widget's own CSS and HTML files are rolled into the dojo.widget JS files for download. I do not see dojo base files like *.css?cacheBustParam or *.html?cacheBustParam when watching Firebug.
A naive fix would be adding djConfig.cacheBust to templatePath and templateCssPath when used within Dijit if cacheBust is defined at runtime, but I don't know what else that may break.