It's all about the answers!

Ask a question

web ui not picking up javascript changes unless ?debug=true


Craig Lawton (2121) | asked Jul 25 '07, 2:09 p.m.
Working with the Hello World example on Team Concert v.20070711-2021 I have run into a problem where changes made to the HelloWorldPageView.js file (such as changing the button text) does not show up when restarting the JETTY server under the normal mode (http://localhost:9080/jazz/web/projects/Eclipse%20Project). However, if I specify the URL with the debug option (http://localhost:9080/jazz/web/projects/Eclipse%20Project?debug=true) I see the changes correctly. This happens even if I create a new launch config from the "Open run dialog ..." in the OSGi framework section.

2 answers



permanent link
Richard Backhouse (6661) | answered Jul 25 '07, 2:43 p.m.
JAZZ DEVELOPER
You will need to clean your browser cache to see your changes. When run
normally the javascript code is optimized using version id on the urls
(In fact multiple files are downloaded in bulk. If the version id not
not change the browser cache version is used. The version id will not
change when running in the Jetty development environment. When you turn
on debug the javascript files are downloaded individually without
version identifiers.

Richard

clawton wrote:
Working with the Hello World example on Team Concert v.20070711-2021 I
have run into a problem where changes made to the
HelloWorldPageView.js file (such as changing the button text) does
not show up when restarting the JETTY server under the normal mode
(http://localhost:9080/jazz/web/projects/Eclipse%20Project). However,
if I specify the URL with the debug option
(http://localhost:9080/jazz/web/projects/Eclipse%20Project?debug=true)
I see the changes correctly. This happens even if I create a new
launch config from the "Open run dialog ..." in the OSGi
framework section.

permanent link
Bill Higgins (24611) | answered Sep 15 '07, 6:10 a.m.
Craig, here's what I do when coding:

- Turn off Firefox's cache via the "Disable Cache" feature of the Web Development Toolbar extension (https://addons.mozilla.org/en-US/firefox/addon/60)
- Run with the ?debug=true query param option set

In this mode you get your code changes every time.

PS - Don't forget to re-enable caching after you're done coding, or you'll quickly discover how important it is to web responsiveness and scalability :-)

Your answer


Register or to post your answer.