added cache clearing support for dialog.js (#411)