web ui not picking up javascript changes unless ?debug=true
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
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:
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.
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 :-)
- 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 :-)