Ticket #2904 (closed defect: fixed)

Opened 19 months ago

Last modified 9 months ago

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.

Change History

Changed 18 months ago by bill

  • owner changed from bill to jburke
  • component changed from Widgets to General
  • milestone set to 1.0

Changed 14 months ago by jburke

  • milestone changed from 1.0 to 1.1

Changed 10 months ago by jburke

This is fixed in r12320, if you set up djConfig.cacheBust = (new Date()).getTime() then templatePaths will have that cacheBust value appended to the URL. For CSS files, the toolkit no longer loads those directly. To refresh CSS that was included in the page with link tags, try the ReCSS bookmarklet:

http://dojotoolkit.org/~david/recss.html

Changed 9 months ago by jburke

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.